diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-03-30 15:27:46 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2021-03-30 15:28:47 +0000 |
commit | 77d81c2270c6221a430aac17c2c0aa73b39cc0d2 (patch) | |
tree | 38fa8f9f04f63d9e03b1689e912ce850e680019c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a6950c33e8604552eb2d933138a576758633343e (diff) | |
download | llvm-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