llvm-project/compiler-rt/lib
Matt Morehouse 2392ff093a [libFuzzer] Error and exit if user supplied fuzzer writeable directories don't exist
Currently, libFuzzer will exit with an error message if a non-existent
corpus directory is provided. However, if a user provides a non-existent
directory for the `artifact_prefix`, `exact_artifact_path`, or
`features_dir`, libFuzzer will continue execution but silently fail to
write artifacts/features.

To improve the user experience, this PR adds validation for the existence of
all user supplied directories before executing the main fuzzing loop. If they
don't exist, libFuzzer will exit with an error message.

Patch By: dgg5503

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D84808
2020-08-26 09:27:07 -07:00
..
BlocksRuntime
asan sanitizer_symbolizer_libcdep.cpp: Change --inlining=true to --inlines and --inlining=false to --no-inlines 2020-08-04 10:24:59 -07:00
builtins [AIX][compiler-rt][builtins] Don't add ppc builtin implementations that require __int128 on AIX 2020-08-25 11:35:38 -04:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt [cmake] Strip quotes in compiler-rt/lib/crt; error if checks fail 2020-03-09 15:52:39 -07:00
dfsan [DFSan] Handle mmap() calls before interceptors are installed. 2020-08-19 15:07:41 -07:00
fuzzer [libFuzzer] Error and exit if user supplied fuzzer writeable directories don't exist 2020-08-26 09:27:07 -07:00
gwp_asan [GWP-ASan] Crash handler API returns sizeof(collected trace) 2020-07-27 10:51:55 -07:00
hwasan [compiler-rt][asan][hwasan] Refactor shadow setup into sanitizer_common (NFCI) 2020-07-16 11:47:05 -07:00
interception Fix check-interception link error in compiler-rt debug mode 2019-10-10 23:30:54 +00:00
lsan [LSan] Enable for SystemZ 2020-06-16 13:45:29 +02:00
msan [MSAN RT] Use __sanitizer::mem_is_zero in __msan_test_shadow 2020-08-10 19:22:27 +00:00
profile [Compiler-RT] Fix profiler building with MinGW GCC 2020-08-25 10:22:53 +03:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common [tsan] On arm64e, strip out ptrauth bits from incoming PCs 2020-08-25 11:59:36 -07:00
scudo [scudo][standalone] Skip irrelevant regions during release 2020-08-25 07:41:02 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [tsan] On arm64e, strip out ptrauth bits from incoming PCs 2020-08-25 11:59:36 -07:00
ubsan [compiler-rt][cmake] Simplify COMPILER_RT_HAS_VERSION_SCRIPT tests 2020-07-30 10:27:36 +02:00
ubsan_minimal [ubsan] Check implicit casts in ObjC for-in statements 2020-07-13 15:11:18 -07:00
xray Use find_library for ncurses 2020-08-17 19:52:52 -07:00
CMakeLists.txt scudo: Add support for diagnosing memory errors when memory tagging is enabled. 2020-04-17 17:26:30 -07:00