[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
chefmax at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 8 11:35:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820
--- Comment #9 from Maxim Ostapenko <chefmax at gcc dot gnu.org> ---
Author: chefmax
Date: Tue Dec 8 11:34:28 2015
New Revision: 231405
URL: https://gcc.gnu.org/viewcvs?rev=231405&root=gcc&view=rev
Log:
2015-12-08 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
Backport from mainline.
2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
PR sanitizer/64820
gcc/
* cfgexpand.c (align_base): New function.
(alloc_stack_frame_space): Call it.
(expand_stack_vars): Align prev_frame to be sure
data->asan_vec elements aligned properly.
gcc/testsuite/
* c-c++-common/asan/pr64820.c: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr64820.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/cfgexpand.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list