[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
Tue Jul 14 18:59:16 PDT 2026


================
@@ -1822,6 +1905,10 @@ void InitializeInterceptors() {
   MSAN_MAYBE_INTERCEPT_FREAD_UNLOCKED;
   INTERCEPT_FUNCTION(memccpy);
   MSAN_MAYBE_INTERCEPT_MEMPCPY;
+  MSAN_MAYBE_INTERCEPT___MEMCPY_CHK;
----------------
AustinSchuh wrote:

Yea, I want to delegate to `__memcpy_chk` ultimately to preserve the security checks from `_FORTIFY_SOURCE`.  The implementation to do that should be pretty much the same, just a different destination function.

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


More information about the llvm-commits mailing list