llvm-project/compiler-rt/lib/gwp_asan
Mitch Phillips ae56e593b9 Add GWP-ASan fuzz target to compiler-rt/tools.
Summary:
@eugenis to approve addition of //compiler-rt/tools.
@pree-jackie please confirm that this WFY.

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`.

Reviewers: eugenis, pree-jackie

Reviewed By: eugenis, pree-jackie

Subscribers: dberris, mgorny, #sanitizers, llvm-commits, eugenis, pree-jackie, lebedev.ri, vitalybuka, morehouse

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D66776

llvm-svn: 370094
2019-08-27 18:28:07 +00:00
..
optional [GWP-ASan] Split options_parser and backtrace_sanitizer_common. 2019-08-23 23:23:48 +00:00
platform_specific [GWP-ASan] Core Guarded Pool Allocator [4]. 2019-06-05 19:42:48 +00:00
scripts [GWP-ASan] Add public-facing documentation [6]. 2019-08-21 17:53:51 +00:00
tests [GWP-ASan] Split options_parser and backtrace_sanitizer_common. 2019-08-23 23:23:48 +00:00
CMakeLists.txt Add GWP-ASan fuzz target to compiler-rt/tools. 2019-08-27 18:28:07 +00:00
definitions.h [GWP-ASan] Core Guarded Pool Allocator [4]. 2019-06-05 19:42:48 +00:00
guarded_pool_allocator.cpp [GWP-ASan] Fix typos. 2019-08-20 20:16:11 +00:00
guarded_pool_allocator.h [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
mutex.h [GWP-ASan] Mutex implementation [2]. 2019-05-30 19:45:32 +00:00
options.h [GWP-ASan] Split options_parser and backtrace_sanitizer_common. 2019-08-23 23:23:48 +00:00
options.inc [GWP-ASan] Add public-facing documentation [6]. 2019-08-21 17:53:51 +00:00
random.cpp [GWP-ASan] Add thread ID to PRNG seed. 2019-07-16 20:06:17 +00:00
random.h
stack_trace_compressor.cpp [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
stack_trace_compressor.h [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00