asan_allocator2.cc | 161 u32 chunk_state : 8; // Must be first. member in struct:__asan::ChunkHeader 272 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE); 436 static void ReportInvalidFree(void *ptr, u8 chunk_state, StackTrace *stack) { 437 if (chunk_state == CHUNK_QUARANTINE) 446 // Flip the chunk_state atomically to avoid race on double-free. 457 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE); 521 u8 chunk_state = m->chunk_state; local 522 if (chunk_state != CHUNK_ALLOCATED) 523 ReportInvalidFree(old_ptr, chunk_state, stack) [all...] |