[compiler-rt] [msan] Mark allocator padding as uninitialized, with new origin tag (PR #157187)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 5 16:52:07 PDT 2025
================
@@ -247,7 +269,7 @@ void __msan::MsanDeallocate(BufferedStackTrace *stack, void *p) {
RunFreeHooks(p);
Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p));
- uptr size = meta->requested_size;
+ uptr size = allocator.GetActuallyAllocatedSize(p);
----------------
thurstond wrote:
Done
https://github.com/llvm/llvm-project/pull/157187
More information about the llvm-commits
mailing list