[compiler-rt] [TySan] Intercept malloc_size on Apple platforms. (PR #122133)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 04:00:33 PST 2025
================
@@ -110,7 +110,7 @@ INTERCEPTOR(void *, malloc, uptr size) {
#if SANITIZER_APPLE
INTERCEPTOR(uptr, malloc_size, void *ptr) {
- if (DlsymAlloc::Use())
+ if (DlsymAlloc::Use() || DlsymAlloc::PointerIsMine(ptr))
----------------
fhahn wrote:
Yep that should do the trick, done ,thanks
https://github.com/llvm/llvm-project/pull/122133
More information about the llvm-commits
mailing list