[asan,tsan,msan] move the memcmp interceptor from asan/tsan to sanitizer_common....
authorKostya Serebryany <kcc@google.com>
Wed, 29 Jul 2015 23:53:08 +0000 (23:53 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 29 Jul 2015 23:53:08 +0000 (23:53 +0000)
commitc69bf1b4c02a4e6a3ce93ca8c9bfc11567c42d8a
tree56ebb0cc94af9913d5c19b4d75e84e155d6515c3
parent1993dc8b15d4d8835e773499240fad2da1152fb2
[asan,tsan,msan] move the memcmp interceptor from asan/tsan to sanitizer_common. This may potentially lead to more reports from msan as it now sees the reads inside memcmp. To disable, use the flag intercept_memcmp=0. Likewise, it may potentially cause new races to appear due to more strict memcmp checking (flag strict_memcmp=1)

llvm-svn: 243595
compiler-rt/lib/asan/asan_flags.inc
compiler-rt/lib/asan/asan_interceptors.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/test/msan/memcmp_test.cc [new file with mode: 0644]
compiler-rt/test/tsan/memcmp_race.cc [new file with mode: 0644]