[compiler-rt] [compiler-rt][asan] Add wcscpy/wcsncpy; enable wcscat/wcsncat on Windows (PR #160493)
Yixuan Cao via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 06:02:33 PDT 2025
================
@@ -551,7 +551,7 @@ SANITIZER_WEAK_IMPORT void *aligned_alloc(__sanitizer::usize __alignment,
#define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE (!SI_MAC && !SI_NETBSD)
#define SANITIZER_INTERCEPT_MCHECK_MPROBE SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_WCSLEN 1
-#define SANITIZER_INTERCEPT_WCSCAT SI_POSIX
+#define SANITIZER_INTERCEPT_WCSCAT 1
----------------
Cao-Wuhui wrote:
Thanks for the catch! I have restricted the enablement to avoid enabling wcscat/wcsncat on non-POSIX/non-Windows platforms. Let me know if you prefer an alternative gate.
https://github.com/llvm/llvm-project/pull/160493
More information about the llvm-commits
mailing list