[PATCH] D83494: [libFuzzer] Link libFuzzer's own interceptors when other compiler runtimes are not linked.
Dokyung Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 13 09:31:30 PDT 2020
dokyungs updated this revision to Diff 277462.
dokyungs added a comment.
Add interceptors for all the functions libFuzzer has a weak interceptor for, and duplicate existing interceptor test cases with new compiler flags (-fno-sanitize=address).
Builtin libfunc optimizations may transform memcmp and strcmp-like functions. To disable such optimizations, -fno-builtin= flag was additionally added in compiling new test cases. FWIW, the original test cases didn't require such flags since other sanitizers including ASan disables those optimizations in their LLVM pass by dropping libfunc attribute in the call instructions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83494/new/
https://reviews.llvm.org/D83494
Files:
clang/include/clang/Driver/SanitizerArgs.h
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
compiler-rt/test/fuzzer/no-asan-memcmp.test
compiler-rt/test/fuzzer/no-asan-strcmp.test
compiler-rt/test/fuzzer/no-asan-strncmp.test
compiler-rt/test/fuzzer/no-asan-strstr.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83494.277462.patch
Type: text/x-patch
Size: 11374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200713/7c32aed5/attachment-0001.bin>
More information about the cfe-commits
mailing list