Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tcmalloc/guarded_page_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ GuardedAllocationsErrorType GuardedPageAllocator::GetErrorType(
if (addr >= d.allocation_start + d.requested_size) {
return GuardedAllocationsErrorType::kBufferOverflow;
}
return GuardedAllocationsErrorType::kUnknown;
// The allocation is within range, but we have dealloc_count==0. We likely
// raced with another allocation reseting it.
return GuardedAllocationsErrorType::kUseAfterFree;
}

uintptr_t GuardedPageAllocator::SlotToAddr(size_t slot) const {
Expand Down
Loading