[compiler-rt] ffb368d - sanitizer_common: fix buildbot by restoring wcslen semantics

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 23:56:15 PDT 2023


Author: Thurston Dang
Date: 2023-05-19T06:54:29Z
New Revision: ffb368d650c284ff7e452dcf827e95f8b949ec62

URL: https://github.com/llvm/llvm-project/commit/ffb368d650c284ff7e452dcf827e95f8b949ec62
DIFF: https://github.com/llvm/llvm-project/commit/ffb368d650c284ff7e452dcf827e95f8b949ec62.diff

LOG: sanitizer_common: fix buildbot by restoring wcslen semantics

Windows buildbot (https://lab.llvm.org/buildbot/#/builders/127/builds/48479)
was broken by my patch https://reviews.llvm.org/D150909 because it
gated wcslen interception to SI_POSIX, instead of always intercepting wcslen.
This changes it back to always intercepting wcslen.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 33ac3871e0ad..077ede46d33c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -494,7 +494,7 @@
 #define SANITIZER_INTERCEPT_ALIGNED_ALLOC (!SI_MAC)
 #define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE (!SI_MAC && !SI_NETBSD)
 #define SANITIZER_INTERCEPT_MCHECK_MPROBE SI_LINUX_NOT_ANDROID
-#define SANITIZER_INTERCEPT_WCSLEN SI_POSIX
+#define SANITIZER_INTERCEPT_WCSLEN 1
 #define SANITIZER_INTERCEPT_WCSCAT SI_POSIX
 #define SANITIZER_INTERCEPT_WCSDUP SI_POSIX
 #define SANITIZER_INTERCEPT_SIGNAL_AND_SIGACTION (!SI_WINDOWS && SI_NOT_FUCHSIA)


        


More information about the llvm-commits mailing list