[compiler-rt] [compiler-rt][asan] Add wcscpy/wcsncpy; enable wcscat/wcsncat on Windows (PR #160493)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 09:22:15 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
----------------
thurstond wrote:

This change does more than "Enable wcscat/wcsncat on Windows" - it is enabling it on all platforms (possibly including some that don't have wcscat).

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


More information about the llvm-commits mailing list