[libc-commits] [libc] [libc] introduce hardened check and heap walk utilities (PR #210373)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jul 21 15:51:59 PDT 2026


================
@@ -366,3 +366,19 @@ TEST_FOR_EACH_ALLOCATOR(AllocationSize, 2048) {
   allocator.free(ptr);
   EXPECT_EQ(allocator.allocation_size(ptr), size_t(0));
 }
+
+TEST_FOR_EACH_ALLOCATOR(CanSanitize, 2048) {
----------------
michaelrj-google wrote:

add a death test to check the failure case

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


More information about the libc-commits mailing list