re PR sanitizer/64820 (Libsanitizer fails with ((AddrIsAlignedByGranularity(addr...
authorMax Ostapenko <m.ostapenko@partner.samsung.com>
Mon, 16 Mar 2015 11:17:32 +0000 (13:17 +0200)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Mon, 16 Mar 2015 11:17:32 +0000 (13:17 +0200)
commit435be74793042d6f627732cb5a3b32dd24cd382c
tree5befcb0a95eb0b574dcccdbbeb824653033f6f53
parent6c25f7962556e2217d5070720ac879c40063209a
re PR sanitizer/64820 (Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.)

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.

From-SVN: r221457
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pr64820.c [new file with mode: 0644]