diff options
author | Philipp Stephani <phst@google.com> | 2019-04-25 21:28:46 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2019-04-25 21:30:12 +0200 |
commit | fe6c507f5ce0fd744b5bd1d0db6ea175e1188a7f (patch) | |
tree | f55da6d44458911f708c720ca88df4fec55ad005 /src/emacs-module.c | |
parent | e08e0880f9892fba747abdb95b1f3382ebd17e32 (diff) | |
download | emacs-fe6c507f5ce0fd744b5bd1d0db6ea175e1188a7f.tar.gz emacs-fe6c507f5ce0fd744b5bd1d0db6ea175e1188a7f.tar.bz2 emacs-fe6c507f5ce0fd744b5bd1d0db6ea175e1188a7f.zip |
Make sure that ‘sdata’ objects in ‘sblock’ objects are aligned.
Issue found by Clang’s UBSan.
* src/alloc.c (GC_STRING_OVERRUN_COOKIE_SIZE): Increase to 8.
(string_overrun_cookie): Extend accordingly.
(GC_STRING_EXTRA): Ensure that it’s properly aligned for ‘sdata’.
(allocate_string_data): Verify that ‘sdata’ blocks remain aligned.
Diffstat (limited to 'src/emacs-module.c')
0 files changed, 0 insertions, 0 deletions