]> git.eshelyaron.com Git - emacs.git/commit
Re-port dump_bitset_clear to -fsanitize=undefined
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Aug 2019 01:39:20 +0000 (18:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Aug 2019 01:39:58 +0000 (18:39 -0700)
commit220f16cab6c40a1b0df1a5d2101c6602abbc6aae
tree7869f939e211266640238e249700c8dad6ed8c09
parentd9d58555d9de034ed78c61b054ef4c127dfad289
Re-port dump_bitset_clear to -fsanitize=undefined

* src/pdumper.c (dump_bitset_clear): Skip the memset if the
size is zero, because in that case the destination might be NULL.
This fixes a bug introduced in 2019-07-26T06:17:52Zeggert@cs.ucla.edu.
Add a comment to make the bug less likely to reoccur.
src/pdumper.c