[compiler-rt] f42b8a1 - [sanitizer][Fuchsia] Define interceptor for reallocarray on Fuchsia (#184410)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 10:48:20 PST 2026
Author: PiJoules
Date: 2026-03-03T18:48:12Z
New Revision: f42b8a18d9043f36f173184d1bf1c28dc6a5be2f
URL: https://github.com/llvm/llvm-project/commit/f42b8a18d9043f36f173184d1bf1c28dc6a5be2f
DIFF: https://github.com/llvm/llvm-project/commit/f42b8a18d9043f36f173184d1bf1c28dc6a5be2f.diff
LOG: [sanitizer][Fuchsia] Define interceptor for reallocarray on Fuchsia (#184410)
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 1b300bc7533b6..1e5f1360321ff 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -545,7 +545,7 @@ SANITIZER_WEAK_IMPORT void *aligned_alloc(__sanitizer::usize __alignment,
#define SANITIZER_INTERCEPT___LIBC_MEMALIGN SI_GLIBC
#define SANITIZER_INTERCEPT_PVALLOC (SI_GLIBC || SI_ANDROID)
#define SANITIZER_INTERCEPT_CFREE (SI_GLIBC && !SANITIZER_RISCV64)
-#define SANITIZER_INTERCEPT_REALLOCARRAY SI_POSIX
+#define SANITIZER_INTERCEPT_REALLOCARRAY (SI_POSIX || SI_FUCHSIA)
#define SANITIZER_INTERCEPT_ALIGNED_ALLOC \
(!SI_MAC || SI_MAC_SDK_10_15_AVAILABLE)
#define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE (!SI_MAC && !SI_NETBSD)
More information about the llvm-commits
mailing list