]> git.eshelyaron.com Git - emacs.git/commit
pdumder.c: Fix bug#68690
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 27 Jan 2024 04:03:00 +0000 (23:03 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:07:12 +0000 (21:07 +0100)
commit4be85a2c9af5eadceb790eb4b0eeae3addbd39a1
treeeff949ebbdb470ab7a070bac85ce7bab4e4b400c
parent38f38e69de50c0247ccc1abfc1bf65a7ba5d34f2
pdumder.c: Fix bug#68690

The problem was that the offset computed for the `charset_table` array
was a multiple of 4 but the `struct charset` needed an alignment on
a multiple of 8, so `dump_charset` inserted 4 bytes of padding,
whereas you can't have padding at the beginning of an array.

* src/pdumper.c (dump_charset): Don't set alignment here.
(dump_charset_table): Set it here instead.

(cherry picked from commit 89734c4f1d2fb9aa18e44481174eb595134f497b)
src/pdumper.c