pdumder.c: Fix bug#68690
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 27 Jan 2024 04:03:00 +0000 (23:03 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 27 Jan 2024 04:08:13 +0000 (23:08 -0500)
commit89734c4f1d2fb9aa18e44481174eb595134f497b
treec63525c56dd6d25d4384559f52a893c3886a1441
parentc37b50ad417c6cb340f54ffe218f5d889345451a
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.
src/pdumper.c