[sanitizer] Intercept bzero.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 4 Mar 2019 22:58:11 +0000 (22:58 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 4 Mar 2019 22:58:11 +0000 (22:58 +0000)
commit8cee2e8539ae8dea441470401378979965a652b2
tree528de51b6f066954e8466a2cd0ce5ad3513b502d
parent090683b85e4a2085738091ab5d4d3e6cbae04c9d
[sanitizer] Intercept bzero.

Summary:
Intercept bzero and enable existing __bzero interceptor in Linux.
bzero is deprecated but still used occasionally.

Reviewers: vitalybuka

Subscribers: srhines, kubamracek, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

llvm-svn: 355347
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/test/asan/TestCases/Linux/bzero.cc [new file with mode: 0644]
compiler-rt/test/msan/Linux/bzero.cc [new file with mode: 0644]