[all-commits] [llvm/llvm-project] 8ef9e2: Revert "[libFuzzer] Link libFuzzer's own intercept...
Richard Smith via All-commits
all-commits at lists.llvm.org
Thu Jul 16 18:09:24 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91
https://github.com/llvm/llvm-project/commit/8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2020-07-16 (Thu, 16 Jul 2020)
Changed paths:
M clang/include/clang/Driver/SanitizerArgs.h
M clang/lib/Driver/SanitizerArgs.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M compiler-rt/lib/fuzzer/CMakeLists.txt
R compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
M compiler-rt/test/fuzzer/memcmp.test
M compiler-rt/test/fuzzer/memcmp64.test
M compiler-rt/test/fuzzer/strcmp.test
M compiler-rt/test/fuzzer/strncmp.test
M compiler-rt/test/fuzzer/strstr.test
Log Message:
-----------
Revert "[libFuzzer] Link libFuzzer's own interceptors when other compiler runtimes are not linked."
This causes binaries linked with this runtime to crash on startup if
dlsym uses any of the intercepted functions. (For example, that happens
when using tcmalloc as the allocator: dlsym attempts to allocate memory
with malloc, and tcmalloc uses strncmp within its implementation.)
Also revert dependent commit "[libFuzzer] Disable implicit builtin knowledge about memcmp-like functions when -fsanitize=fuzzer-no-link is given."
This reverts commit f78d9fceea736d431e9e3cbca291e3909e3aa46d and 12d1124c49beec0fb79d36944960e5bf0f236d4c.
More information about the All-commits
mailing list