[sanitizer] Move fread and fwrite interceptors to sanitizer_common
authorMaxim Ostapenko <chefmax7@gmail.com>
Thu, 30 Mar 2017 07:25:33 +0000 (07:25 +0000)
committerMaxim Ostapenko <chefmax7@gmail.com>
Thu, 30 Mar 2017 07:25:33 +0000 (07:25 +0000)
commitf29aec76dd8d59e4a4b9316d3699f088f2bfb227
tree0de813234db3ba77393fdd340ffb4c1729a90be6
parent9e46396ecc0e91110252a02c79ce775c83643961
[sanitizer] Move fread and fwrite interceptors to sanitizer_common

{M, T, E}San have fread and fwrite interceptors, let's move them to sanitizer_common to enable ASan checks as well.

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

llvm-svn: 299061
compiler-rt/lib/esan/esan_interceptors.cpp
compiler-rt/lib/msan/msan_interceptors.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cc [new file with mode: 0644]
compiler-rt/test/msan/fread_fwrite.cc [new file with mode: 0644]