[compiler-rt] [sanitizer_common][asan] Implement address sanitizer on AIX: interceptors (5/6) (PR #131870)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 00:44:46 PDT 2025
================
@@ -22,6 +22,14 @@
using namespace __asan;
+// AIX does not intercept memcpy, so we have to use internal_memcpy.
+#if !SANITIZER_AIX
+# define ASAN_MEMCPY_RETURN(to, from, size) return REAL(memcpy)(to, from, size)
----------------
vitalybuka wrote:
`#define ASAN_MEMCPY_RETURN(to, from, size) REAL(memcpy)(to, from, size)`
to keep return at use site
https://github.com/llvm/llvm-project/pull/131870
More information about the llvm-commits
mailing list