llvm-svn: 275492
This commit is contained in:
Etienne Bergeron 2016-07-14 22:18:21 +00:00
parent 47ea8f536d
commit 31795c7576
1 changed files with 0 additions and 5 deletions

View File

@ -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));