[compiler-rt] [TySan] Intercept malloc_size on Apple platforms. (PR #122133)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 08:55:09 PST 2025
================
@@ -108,6 +108,14 @@ INTERCEPTOR(void *, malloc, uptr size) {
return res;
}
+#if SANITIZER_APPLE
+INTERCEPTOR(uptr, malloc_size, void *ptr) {
+ if (DlsymAlloc::Use())
----------------
fhahn wrote:
Thanks, I think that should be taken care of by checking `PointerIsMine` (as mentioned by @fmayer ). Update the code.
https://github.com/llvm/llvm-project/pull/122133
More information about the llvm-commits
mailing list