[compiler-rt] [llvm] [msan] Add interceptors for fortified memory functions (__memcpy_chk, etc.) (PR #206702)

Austin Schuh via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 01:10:48 PDT 2026


================
@@ -181,6 +181,10 @@ SANITIZER_WEAK_IMPORT void *aligned_alloc(__sanitizer::usize __alignment,
 #define SANITIZER_INTERCEPT_MEMSET 1
 #define SANITIZER_INTERCEPT_MEMMOVE 1
 #define SANITIZER_INTERCEPT_MEMCPY 1
+#define SANITIZER_INTERCEPT___MEMCPY_CHK SI_GLIBC
+#define SANITIZER_INTERCEPT___MEMMOVE_CHK SI_GLIBC
----------------
AustinSchuh wrote:

I expanded it somewhat.  Hopefully that list is decently correct. I don't have an easy way to test beyond glibc Linux and OSX.

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


More information about the llvm-commits mailing list