[ASan] Add the memcmp_strict flag (1 by default) that controls the behavior of access...
authorAlexander Potapenko <glider@google.com>
Thu, 28 Feb 2013 14:09:30 +0000 (14:09 +0000)
committerAlexander Potapenko <glider@google.com>
Thu, 28 Feb 2013 14:09:30 +0000 (14:09 +0000)
commitf1c48eb509f4b56556ed751853651df62a4b7cd9
treed9a32a5f5b496f40a796ae9d28d94936cc59e50c
parent1cb95a17b830fd1a0510c2f65d2cc018b6888fae
[ASan] Add the memcmp_strict flag (1 by default) that controls the behavior of accessibility checks in memcmp.
1: memcmp(p1, p2, n) always checks n bytes
0: memcmp checks up to n bytes depending on whether the memory contents differ.

llvm-svn: 176256
compiler-rt/lib/asan/asan_flags.h
compiler-rt/lib/asan/asan_interceptors.cc
compiler-rt/lib/asan/asan_rtl.cc
compiler-rt/lib/asan/lit_tests/memcmp_strict_test.cc [new file with mode: 0644]