aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2021-03-30 15:27:46 +0000
committerGuillaume Chatelet <gchatelet@google.com>2021-03-30 15:28:47 +0000
commit77d81c2270c6221a430aac17c2c0aa73b39cc0d2 (patch)
tree38fa8f9f04f63d9e03b1689e912ce850e680019c /clang/lib/Frontend/CompilerInvocation.cpp
parenta6950c33e8604552eb2d933138a576758633343e (diff)
downloadllvm-77d81c2270c6221a430aac17c2c0aa73b39cc0d2.zip
llvm-77d81c2270c6221a430aac17c2c0aa73b39cc0d2.tar.gz
llvm-77d81c2270c6221a430aac17c2c0aa73b39cc0d2.tar.bz2
[libc] Fix msan/asan memcpy reentrancy
This is needed to prevent asan/msan instrumentation to redirect CopyBlock to `__asan_memcpy` (resp. `__msan_memcpy`). These functions would then differ operation to `memcpy` which leads to reentrancy issues. With this patch, `memcpy` is fully instrumented and covered by asan/msan. If this turns out to be too expensive, instrumentation can be selectively or fully disabled through the use of the `__attribute__((no_sanitize(address, memory)))` annotation. Differential Revision: https://reviews.llvm.org/D99598
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions