Index: lib/asan/asan_allocator.cc =================================================================== --- lib/asan/asan_allocator.cc +++ lib/asan/asan_allocator.cc @@ -549,6 +549,12 @@ uptr chunk_beg = p - kChunkHeaderSize; AsanChunk *m = reinterpret_cast(chunk_beg); + // Ignore allocations that are not handled by this allocator. This may + // happen when the memory allocation hooking is not able to get full + // coverage. + if (!get_allocator().PointerIsMine(ptr)) + return; + ASAN_FREE_HOOK(ptr); // Must mark the chunk as quarantined before any changes to its metadata. // Do not quarantine given chunk if we failed to set CHUNK_QUARANTINE flag.