[Bug sanitizer/63316] [5.0 Regression] False asan positive
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 22 08:28:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63316
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
MALLOC_ABI_ALIGNMENT is BITS_PER_WORD (too small for Linux actually, glibc
guarantees 2 * BITS_PER_WORD).
So, this IMNSHO is a libsanitizer bug, in that it doesn't provide the Linux ABI
guaranteed alignments. On 32-bit Linux targets, malloc even for 1-7 bytes (and
0 if it doesn't return NULL for that) allocations should return 8 byte aligned
memory, and for 64-bit Linux targets, malloc even for 1-15 bytes long
allocations should return 16 byte aligned memory.
Kostya, can you please fix sanitizer_common?
More information about the Gcc-bugs
mailing list