[compiler-rt] Enable ASAN checks for wcscat/wcsncat on Windows, and wcscpy/wcsncpy on all platforms (PR #90909)
Zack Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 10:04:10 PDT 2024
================
@@ -65,6 +65,15 @@ static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) {
return internal_strnlen(s, maxlen);
}
+static inline uptr MaybeRealWcsnlen(const wchar_t *s, uptr maxlen) {
+# if SANITIZER_INTERCEPT_STRNLEN
----------------
zacklj89 wrote:
Is this supposed to be `SANITIZER_INTERCEPT_WCSLEN`? Or should there be a wide string equivalent?
https://github.com/llvm/llvm-project/pull/90909
More information about the llvm-commits
mailing list