Reland "[compiler-rt] Intercept the bcmp() function."
authorClement Courbet <courbet@google.com>
Fri, 1 Mar 2019 16:42:08 +0000 (16:42 +0000)
committerClement Courbet <courbet@google.com>
Fri, 1 Mar 2019 16:42:08 +0000 (16:42 +0000)
commitdd885eaf5f36a4d8b34ab50935dbd9c4123b7e13
treea1c45f41155843ceba43f322b40c1edbebbe39d4
parent6b79f3b1e244a0c8c6141a079b08b611d25d61ec
Reland "[compiler-rt] Intercept the bcmp() function."

Fix test issues on darwin: The REQUIRES for the test should be the same as the
guard for whether we intercept bcmp.

llvm-svn: 355204
compiler-rt/lib/asan/tests/asan_mem_test.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/test/asan/TestCases/Posix/bcmp_test.cc [new file with mode: 0644]
compiler-rt/test/asan/TestCases/memcmp_test.cc
compiler-rt/test/msan/memcmp_test.cc
compiler-rt/test/msan/scoped-interceptors.cc
compiler-rt/test/sanitizer_common/TestCases/Posix/weak_hook_test.cc