Skip to content

Commit 2f41cc2

Browse files
authored
Merge pull request #12012 from paulmenage/asan
[Metadata] Unpoison memory being returned from the metadata allocator
2 parents d52e3b3 + 0766f03 commit 2f41cc2

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
@@ -2725,7 +2725,7 @@ void *MetadataAllocator::Allocate(size_t size, size_t alignment) {
27252725
std::memory_order_relaxed)) {
27262726
// If that succeeded, we've successfully allocated.
27272727
__msan_allocated_memory(allocation, size);
2728-
__asan_poison_memory_region(allocation, size);
2728+
__asan_unpoison_memory_region(allocation, size);
27292729
return allocation;
27302730
}
27312731

0 commit comments

Comments
 (0)