llvm-project/libc/utils
Guillaume Chatelet 77d81c2270 [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
2021-03-30 15:28:47 +00:00
..
CPP [libc] Add a standalone flavor of an equivalent of std::string_view. 2021-02-23 15:40:26 -08:00
FPUtil [libc] Fix msan/asan memcpy reentrancy 2021-03-30 15:28:47 +00:00
HdrGen [CMake][libc] Support cross-compiling libc-hdrgen 2021-01-28 13:13:06 -08:00
LibcTableGenUtil [libc] Add missing TableGen dependency 2020-09-15 14:26:04 +00:00
MPFRWrapper [libc] Add a standalone flavor of an equivalent of std::string_view. 2021-02-23 15:40:26 -08:00
UnitTest [libc][NFC] Add a death test API adaptation macro 2021-02-01 19:19:04 +00:00
buildbot [libc] Add python3 to libc buildbot depedencies. 2020-12-17 08:59:13 -08:00
testutils [libc] Use a wrapper for rand instead of calling std::rand in fma tests. 2021-01-06 15:07:44 -08:00
tools [libc] Refactor WrapperGen to make the flow cleaner. 2020-12-17 08:56:45 -08:00
CMakeLists.txt [libc] Introduce a full build mode CMake option. 2021-03-12 13:28:40 -08:00