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?

Reply via email to