[compiler-rt] [scudo] Add primary option to zero block on dealloc. (PR #142394)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 12:35:36 PDT 2025


================
@@ -191,7 +212,8 @@ struct ScudoPrimaryTest : public Test {};
   SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig2)                            \
   SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig3)                            \
   SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig4)                            \
-  SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig5)
+  SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig5)                            \
+  SCUDO_TYPED_TEST_TYPE(FIXTURE, NAME, TestConfig6)
----------------
cferris1000 wrote:

Add a specific test to verify that the memory is actually zero'd. I think it's safe to free the ptr and then verify they are zero.

https://github.com/llvm/llvm-project/pull/142394


More information about the llvm-commits mailing list