Skip to content

Commit 010f619

Browse files
committed
Guard MaybeRealWcsnlen with SANITIZER_INTERCEPT_WCSLEN
Signed-off-by: Yixuan Cao <[email protected]>
1 parent ac85372 commit 010f619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan/asan_interceptors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) {
6666
}
6767

6868
static inline uptr MaybeRealWcsnlen(const wchar_t *s, uptr maxlen) {
69-
#if SANITIZER_INTERCEPT_STRNLEN
69+
#if SANITIZER_INTERCEPT_WCSLEN
7070
if (REAL(wcsnlen)) {
7171
return REAL(wcsnlen)(s, maxlen);
7272
}

0 commit comments

Comments
 (0)