[compiler-rt] Fix memmove/memcpy overlap detection on windows
authorEtienne Bergeron <etienneb@google.com>
Thu, 21 Jul 2016 16:06:54 +0000 (16:06 +0000)
committerEtienne Bergeron <etienneb@google.com>
Thu, 21 Jul 2016 16:06:54 +0000 (16:06 +0000)
commitaa76a0cf914fe768f0a31b525693abd541b19480
tree234606fc01efafc729cc599a2574084ce49cd5f1
parent3c0d8d22fe67cf96cf6bac8b2f31d1fd8e30af18
[compiler-rt] Fix memmove/memcpy overlap detection on windows

Summary:
The memcpy and memmove functions are the same on windows.
The overlap detection logic is incorrect.

printf-1 test:
```
stdin>:2:114: note: possible intended match here
==877412==ERROR: AddressSanitizer: memcpy-param-overlap: memory ranges [0x0000002bf2a8,0x0000002bf2ad) and [0x0000002bf2a9, 0x0000002bf2ae) overlap
```                                                                                                                 ^

Reviewers: rnk

Subscribers: llvm-commits, wang0109, kubabrecka, chrisha

Differential Revision: https://reviews.llvm.org/D22610

llvm-svn: 276299
compiler-rt/lib/asan/asan_interceptors.cc
compiler-rt/lib/asan/tests/asan_str_test.cc