forked from OSchip/llvm-project
[NFC][Asan] Add FIXME into GetAsanChunk
This commit is contained in:
parent
2dd9a4d855
commit
a803ddc522
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue