Skip to content

Commit 0766f03

Browse files
author
Paul Menage
committed
[Metadata] Unpoison memory being returned from the metadata allocator
Call __asan_unpoison_memory_region() rather than __asan_poison_memory_region()
1 parent 3902688 commit 0766f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ void *MetadataAllocator::Allocate(size_t size, size_t alignment) {
27462746
std::memory_order_relaxed)) {
27472747
// If that succeeded, we've successfully allocated.
27482748
__msan_allocated_memory(allocation, size);
2749-
__asan_poison_memory_region(allocation, size);
2749+
__asan_unpoison_memory_region(allocation, size);
27502750
return allocation;
27512751
}
27522752

0 commit comments

Comments
 (0)