aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2019-04-21 21:16:03 -0700
committerPaul Eggert2019-04-21 21:16:26 -0700
commite85bff0bbb60e1d819f8f5e00f8496026f27f7ea (patch)
treedbfe6998ce8235bb5dde9e6576fe88db6f65a3a0 /src/alloc.c
parent4a5ed6b05a71593cda33af4da44f30eb84b51f30 (diff)
downloademacs-e85bff0bbb60e1d819f8f5e00f8496026f27f7ea.tar.gz
emacs-e85bff0bbb60e1d819f8f5e00f8496026f27f7ea.zip
Fix drain_reloc_list alignment bug
* src/pdumper.c (dump_charset): Use alignof (struct charset), not alignof (int), since struct charset might be more strictly aligned than int. I think this is just a minor performance issue, but we might as well use the correct alignment. (drain_reloc_list): Use an alignment instead of a size for the output alignment. This prevents undefined behavior when alignof (struct emacs_reloc) == 8 and sizeof (dump_off) == 4 when building on x86-64 with gcc -fsanitize=undefined.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions