[compiler-rt] [asan][Windows] Add additional wcs* interceptors (PR #66128)
nicole mazzuca via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 09:51:32 PDT 2023
================
@@ -279,6 +279,25 @@ uptr internal_wcsnlen(const wchar_t *s, uptr maxlen) {
return i;
}
+wchar_t* internal_wcscpy(wchar_t* dst, const wchar_t* src) {
+ wchar_t* dst_it = dst;
+ do {
+ *dst_it++ = *src++;
+ } while (*src);
+ return dst;
+}
+
+wchar_t* internal_wcsncpy(wchar_t* dst, const wchar_t* src, uptr maxlen) {
----------------
strega-nil wrote:
@vitalybuka opened this as a PR, https://github.com/llvm/llvm-project/pull/66529
https://github.com/llvm/llvm-project/pull/66128
More information about the llvm-commits
mailing list