This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/77567] ASAN: Bugus error "alloc-dealloc-mismatch (malloc vs operator delete [])" with C++17's over-aligned types
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2016 17:01:17 +0000
- Subject: [Bug sanitizer/77567] ASAN: Bugus error "alloc-dealloc-mismatch (malloc vs operator delete [])" with C++17's over-aligned types
- Auto-submitted: auto-generated
- References: <bug-77567-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77567
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 39612
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39612&action=edit
pr77567-2.patch
Slightly larger patch, which attempts to diagnose that, but fails to do so,
because asan_allocator.cc only has:
u32 alloc_type : 2;
and we now need 3 bits instead of just 2.
Dmitry, is there any possibility to free one bit for this in ChunkHeader?