parent
47ea8f536d
commit
31795c7576
|
@ -585,12 +585,7 @@ INTERCEPTOR(char*, __strdup, const char *s) {
|
|||
INTERCEPTOR(SIZE_T, wcslen, const wchar_t *s) {
|
||||
void *ctx;
|
||||
ASAN_INTERCEPTOR_ENTER(ctx, wcslen);
|
||||
#if SANITIZER_WINDOWS64
|
||||
// The function is incorrectly hooked on windows 64-bit.
|
||||
SIZE_T length = internal_wcslen(s);
|
||||
#else
|
||||
SIZE_T length = REAL(wcslen)(s);
|
||||
#endif
|
||||
if (!asan_init_is_running) {
|
||||
ENSURE_ASAN_INITED();
|
||||
ASAN_READ_RANGE(ctx, s, (length + 1) * sizeof(wchar_t));
|
||||
|
|
Loading…
Reference in New Issue