[compiler-rt] r275492 - address comments in: https://reviews.llvm.org/D22363
Etienne Bergeron via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 15:18:21 PDT 2016
Author: etienneb
Date: Thu Jul 14 17:18:21 2016
New Revision: 275492
URL: http://llvm.org/viewvc/llvm-project?rev=275492&view=rev
Log:
address comments in: https://reviews.llvm.org/D22363
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=275492&r1=275491&r2=275492&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Thu Jul 14 17:18:21 2016
@@ -585,12 +585,7 @@ INTERCEPTOR(char*, __strdup, const char
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));
More information about the llvm-commits
mailing list