[compiler-rt] [ASan] [HWASan] Add __sanitizer_ignore_free_hook() (PR #96749)

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 04:39:41 PDT 2024


================
@@ -0,0 +1,119 @@
+// Check that free hook doesn't conflict with Realloc.
+// RUN: %clangxx_asan -O2 %s -o %t -DTEST=basic_hook_works && not %run %t \
+// RUN:   |& FileCheck %s -check-prefix=CHECK-BASIC
+// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore && %run %t \
----------------
hctim wrote:

Seems reasonable and do-able except it gets kinda messy:

 1. Allocation type mismatch doesn't exist for HWASan and it would mean therefore forking that test into two files anyway.
 2. There aren't sanitizer_common tests in gn, only check-hwasan/check-asan, and hwasan tests are most important and easiest to invoke for android through gn.

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


More information about the llvm-commits mailing list