[PATCH][4.9] Backport fix for PR sanitizer/64820.

Maxim Ostapenko m.ostapenko@partner.samsung.com
Wed Nov 18 09:28:00 GMT 2015


Hi,

this small patch fixes the logic in ASan vs SSP interaction to provide 
correct "size" parameter to asan_stack_malloc_[N] routines. With current 
logic, we would have assertion failure in libsanitizer in UAR mode on 
32-bit targets due to wrong granularity of resulting addr + size address.

Regtested via make check RUNTESTFLAGS="--target_board=unix'{-m32,-m64}' 
-j12 on x86_64-unknown-linux-gnu and bootstrapped on 
x86_64-unknown-linux-gnu.

Ok for gcc-4_9-branch?

-Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr64820.diff
Type: text/x-patch
Size: 4400 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151118/648072c2/attachment.bin>


More information about the Gcc-patches mailing list