[compiler-rt] [TySan] Intercept malloc_size on Apple platforms. (PR #122133)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 08:04:20 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())
----------------
fmayer wrote:

Why don't we need `DlSymAlloc::PointerIsMine` here but we do in `realloc`?

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


More information about the llvm-commits mailing list