Index: lib/asan/asan_interceptors.cc =================================================================== --- lib/asan/asan_interceptors.cc +++ lib/asan/asan_interceptors.cc @@ -399,7 +399,7 @@ } \ ENSURE_ASAN_INITED(); \ if (flags()->replace_intrin) { \ - if (to != from) { \ + if (PLATFORM_HAS_DIFFERENT_MEMCPY_AND_MEMMOVE && to != from) { \ CHECK_RANGES_OVERLAP("memcpy", to, size, from, size); \ } \ ASAN_READ_RANGE(ctx, from, size); \