]> git.eshelyaron.com Git - emacs.git/commit
Fix bus error on Debian bullseye
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Aug 2020 21:33:21 +0000 (14:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Aug 2020 22:51:52 +0000 (15:51 -0700)
commit4ecc2ba01db5029c42d3b7f1418a021cccf2dc67
treedbddc98222b1fbdb7d3af0f373d21fb3b2c73467
parentca6c3bec0769d8ac7a49cdb8d2580add5485366e
Fix bus error on Debian bullseye

Problem reported by Lars Ingebrigtsen, and problem diagnosis
and most of this patch by Pip Cet (Bug#42832).
* src/pdumper.c (dump_bitsets_init): Rename from dump_bitset_init.
All callers changed.  Initialize two bitsets with a single malloc
call.
(struct pdumper_loaded_dump_private): New member last_mark_bits.
(pdumper_find_object_type_impl): Return PDUMPER_NO_OBJECT if
the last_mark_bits’ bit is clear.
(pdumper_set_marked_impl): Assert that the last_mark_bits’
bit is set.
(pdumper_clear_marks_impl): Save mark_bits into
last_mark_bits before clearing mark_bits.
Co-authored-by: Pip Cet <pipcet@gmail.com>
src/pdumper.c