[NFC][Asan] Add FIXME into GetAsanChunk

This commit is contained in:
Vitaly Buka 2020-09-03 18:48:03 -07:00
parent 2dd9a4d855
commit a803ddc522
1 changed files with 3 additions and 0 deletions

View File

@ -744,6 +744,9 @@ struct Allocator {
uptr *alloc_magic = reinterpret_cast<uptr *>(alloc_beg);
if (alloc_magic[0] == kAllocBegMagic)
return reinterpret_cast<AsanChunk *>(alloc_magic[1]);
// FIXME: This is either valid small chunk with tiny redzine or invalid
// chunk which is beeing allocated/deallocated. The latter case should
// return nullptr like secondary allocator does.
return reinterpret_cast<AsanChunk *>(alloc_beg);
}