[all-commits] [llvm/llvm-project] 9ab590: [msan] Add bsearch interceptor
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Tue Aug 3 18:39:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ab590e3ebb2f4a652b4cbdd3594848e8fb017fe
https://github.com/llvm/llvm-project/commit/9ab590e3ebb2f4a652b4cbdd3594848e8fb017fe
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2021-08-03 (Tue, 03 Aug 2021)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
M compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
A compiler-rt/test/msan/bsearch.cpp
A compiler-rt/test/sanitizer_common/TestCases/Posix/bsearch.cpp
Log Message:
-----------
[msan] Add bsearch interceptor
Similar to qsort, bsearch can be called from non-instrumented
code of glibc. When it happends tls for arguments can be in uninitialized
state.
Unlike to qsort, bsearch does not move data, so we don't need to
check or initialize searched memory or key. Intrumented comparator will
do that on it's own.
Differential Revision: https://reviews.llvm.org/D107387
More information about the All-commits
mailing list