[Bug sanitizer/88291] [9 Regression] asan ICE in asan_clear_shadow
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 2 12:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88291
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sun Dec 2 12:39:26 2018
New Revision: 266721
URL: https://gcc.gnu.org/viewcvs?rev=266721&root=gcc&view=rev
Log:
PR sanitizer/88291
* asan.c (asan_clear_shadow): Move assert that len is multiple of 4
to the start of the function.
(asan_emit_stack_protection): When emitting clearing sequence for
epilogue, align offset down to ASAN_RED_ZONE_SIZE granularity,
add last_size_aligned which is last_size padded to multiples of
ASAN_RED_ZONE_SIZE and emit asan_clear_shadow always on 4 byte
boundaries.
* c-c++-common/asan/pr88291.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/asan/pr88291.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/asan.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list