Skip to content

Commit 1c53bfc

Browse files
authored
[compiler-rt][ASan] Define SANITIZER_INTERCEPT_WCSNLEN (llvm#164845)
Follow up to llvm#162028 `SANITIZER_INTERCEPT_WCSNLEN` is not defined, so `internal_wcsnlen` is always used instead of using `REAL(wcsnlen)` if intercepted.
1 parent 38473c5 commit 1c53bfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ SANITIZER_WEAK_IMPORT void *aligned_alloc(__sanitizer::usize __alignment,
551551
#define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE (!SI_MAC && !SI_NETBSD)
552552
#define SANITIZER_INTERCEPT_MCHECK_MPROBE SI_LINUX_NOT_ANDROID
553553
#define SANITIZER_INTERCEPT_WCSLEN 1
554+
#define SANITIZER_INTERCEPT_WCSNLEN 1
554555
#define SANITIZER_INTERCEPT_WCSCAT (SI_POSIX || SI_WINDOWS)
555556
#define SANITIZER_INTERCEPT_WCSDUP SI_POSIX
556557
#define SANITIZER_INTERCEPT_SIGNAL_AND_SIGACTION (!SI_WINDOWS && SI_NOT_FUCHSIA)

0 commit comments

Comments
 (0)