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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 13:50:20 PDT 2024


================
@@ -289,6 +289,9 @@ static void HwasanDeallocate(StackTrace *stack, void *tagged_ptr) {
   CHECK(tagged_ptr);
   void *untagged_ptr = UntagPtr(tagged_ptr);
 
+  if (RunFreeHooks(tagged_ptr))
----------------
vitalybuka wrote:

why do you need to move?
I guess invalid free is still invalid free,  regardless of the new tool?

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


More information about the llvm-commits mailing list