[compiler-rt] [msan] Mark allocator padding as uninitialized, with new origin tag (PR #157187)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 5 15:24:09 PDT 2025
================
@@ -22,6 +22,7 @@ MSAN_FLAG(int, origin_history_size, Origin::kMaxDepth, "")
MSAN_FLAG(int, origin_history_per_stack_limit, 20000, "")
MSAN_FLAG(bool, poison_heap_with_zeroes, false, "")
MSAN_FLAG(bool, poison_stack_with_zeroes, false, "")
+MSAN_FLAG(bool, poison_in_calloc, true, "")
----------------
fmayer wrote:
*everything* shares this flag (malloc, realloc, valloc, aligned_alloc, memalign, posix_memalign), which means it means "poison in alloc" essentially. IMO adding a new flag adds more confusion, not less.
https://github.com/llvm/llvm-project/pull/157187
More information about the llvm-commits
mailing list