[PATCH] D66776: Add GWP-ASan fuzz target to compiler-rt/tools.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 17:10:16 PDT 2019


hctim created this revision.
hctim added reviewers: eugenis, pree-jackie.
Herald added subscribers: llvm-commits, Sanitizers, mgorny, dberris.
Herald added projects: Sanitizers, LLVM.

@eugenis to approve addition of //compiler-rt/tools.
@pree-jackie please confirm that this WFY.

D66494 <https://reviews.llvm.org/D66494> introduced the GWP-ASan stack_trace_compressor_fuzzer. Building fuzz
targets in compiler-rt is a new affair, and has some challenges:

- If the host compiler doesn't have compiler-rt, the -fsanitize=fuzzer may not be able to link against `libclang_rt.fuzzer*`.
- Things in compiler-rt generally aren't built when you want to build with sanitizers using `-DLLVM_USE_SANITIZER`. This tricky to work around, so we create the new tools directory so that we can build fuzz targets with sanitizers. This has the added bonus of fixing the problem above as well, as we can now just guard the fuzz target build to only be done with `-DLLVM_USE_SANITIZE_COVERAGE=On`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66776

Files:
  compiler-rt/CMakeLists.txt
  compiler-rt/lib/gwp_asan/CMakeLists.txt
  compiler-rt/lib/gwp_asan/stack_trace_compressor_fuzzer.cpp
  compiler-rt/tools/CMakeLists.txt
  compiler-rt/tools/gwp_asan/CMakeLists.txt
  compiler-rt/tools/gwp_asan/stack_trace_compressor_fuzzer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66776.217274.patch
Type: text/x-patch
Size: 5094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/302a2d74/attachment.bin>


More information about the llvm-commits mailing list