We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a84f10 commit 6a0f392Copy full SHA for 6a0f392
compiler-rt/lib/asan/asan_interceptors.cpp
@@ -58,15 +58,15 @@ namespace __asan {
58
59
static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) {
60
#if SANITIZER_INTERCEPT_STRNLEN
61
- if (REAL(strnlen) != nullptr)
+ if (static_cast<bool>(REAL(strnlen)))
62
return REAL(strnlen)(s, maxlen);
63
# endif
64
return internal_strnlen(s, maxlen);
65
}
66
67
static inline uptr MaybeRealWcsnlen(const wchar_t* s, uptr maxlen) {
68
# if SANITIZER_INTERCEPT_WCSNLEN
69
- if (REAL(wcsnlen) != nullptr)
+ if (static_cast<bool>(REAL(wcsnlen)))
70
return REAL(wcsnlen)(s, maxlen);
71
72
return internal_wcsnlen(s, maxlen);
0 commit comments