1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib/Fuzzer
Matt Morehouse 8883497952 Generate error reports when a fuzz target exits.
Summary:
Implements https://github.com/google/sanitizers/issues/835.

Flush stdout before exiting in test cases.

Since the atexit hook is used for exit reports, pending prints to
stdout can be lost if they aren't flushed before calling exit().

Expect tests to have non-zero exit code if exit() is called.

Reviewers: vitalybuka, kcc

Reviewed By: kcc

Subscribers: eraman, llvm-commits, hiraditya

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

llvm-svn: 308669
2017-07-20 20:43:39 +00:00
..
afl [libFuzzer] update the comments in afl/afl_driver.cpp 2017-07-14 00:18:37 +00:00
standalone
test Generate error reports when a fuzz target exits. 2017-07-20 20:43:39 +00:00
build.sh [libFuzzer] Use CXX to set compiler to use 2017-01-21 01:21:56 +00:00
CMakeLists.txt [libFuzzer] simplify the handling of memmem/strstr 2017-07-14 00:06:27 +00:00
cxx.dict
FuzzerCorpus.h [libFuzzer] when adding a reduced input print REDUCED instead of NEW 2017-07-18 18:47:36 +00:00
FuzzerCrossOver.cpp
FuzzerDefs.h Fixup for r301054: Only use __attribute__((no_sanitize("memory"))) when it's available. 2017-04-21 22:58:55 +00:00
FuzzerDictionary.h [libFuzzer] make sure we don't execute libFuzzer's mem* and str* hooks while calling mem*/str* inside libFuzzer itself 2017-03-31 02:21:28 +00:00
FuzzerDriver.cpp Generate error reports when a fuzz target exits. 2017-07-20 20:43:39 +00:00
FuzzerExtFunctions.def [libFuzzer] call __sanitizer_print_memory_profile with two params 2017-03-15 23:27:53 +00:00
FuzzerExtFunctions.h
FuzzerExtFunctionsDlsym.cpp
FuzzerExtFunctionsDlsymWin.cpp Fix the includes in lib/Fuzzer on Windows that have ordering 2017-06-06 23:28:01 +00:00
FuzzerExtFunctionsWeak.cpp [LibFuzzer] Fix -Wpedantic warning reported by Eric Christopher. 2017-07-11 18:27:48 +00:00
FuzzerExtFunctionsWeakAlias.cpp
FuzzerExtraCounters.cpp [libFuzzer] create experimental support for user-provided coverage signal 2017-03-23 22:43:12 +00:00
FuzzerFlags.def [libFuzzer] enable reduce_inputs=1 by default (seems to be a big win usually) 2017-07-19 22:10:30 +00:00
FuzzerInterface.h
FuzzerInternal.h Generate error reports when a fuzz target exits. 2017-07-20 20:43:39 +00:00
FuzzerIO.cpp [libFuzzer] Properly use Handle instead of FD on Windows. 2017-02-08 00:03:18 +00:00
FuzzerIO.h [libFuzzer] Properly use Handle instead of FD on Windows. 2017-02-08 00:03:18 +00:00
FuzzerIOPosix.cpp [libFuzzer] Properly use Handle instead of FD on Windows. 2017-02-08 00:03:18 +00:00
FuzzerIOWindows.cpp [LibFuzzer] Fix -Wcomment warning emitted by GCC. 2017-07-11 18:27:52 +00:00
FuzzerLoop.cpp Generate error reports when a fuzz target exits. 2017-07-20 20:43:39 +00:00
FuzzerMain.cpp
FuzzerMerge.cpp [libFuzzer] Allow non-fuzzer args after -ignore_remaining_args=1 2017-07-14 23:33:04 +00:00
FuzzerMerge.h Fixup for r301054: Use an explicit constructor. 2017-04-21 23:28:01 +00:00
FuzzerMutate.cpp [libFuzzer] remove stale code; NFC 2017-07-14 00:16:23 +00:00
FuzzerMutate.h [libFuzzer] remove stale code; NFC 2017-07-14 00:16:23 +00:00
FuzzerOptions.h [libFuzzer] refactoring in preparation for -reduce_inputs; NFC intended 2017-07-12 22:20:04 +00:00
FuzzerRandom.h [libFuzzer] replace std::random_shuffle with std::shuffle as std::random_shuffle is being deprecated in C++17. Also simplify fuzzer::Random. NFC 2017-02-07 22:37:34 +00:00
FuzzerSHA1.cpp
FuzzerSHA1.h
FuzzerShmem.h [libFuzzer] increase the default size for shmem 2017-02-01 00:07:47 +00:00
FuzzerShmemPosix.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
FuzzerShmemWindows.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
FuzzerTracePC.cpp [libFuzzer] prototype implementation of recursion-depth coverage features (commented out; real implementation needs to use inlined instrumentation) 2017-07-20 01:35:17 +00:00
FuzzerTracePC.h [libFuzzer] prototype implementation of recursion-depth coverage features (commented out; real implementation needs to use inlined instrumentation) 2017-07-20 01:35:17 +00:00
FuzzerUtil.cpp [libFuzzer] simplify the handling of memmem/strstr 2017-07-14 00:06:27 +00:00
FuzzerUtil.h [libFuzzer] Allow non-fuzzer args after -ignore_remaining_args=1 2017-07-14 23:33:04 +00:00
FuzzerUtilDarwin.cpp FuzzerUtilDarwin.cpp: We need to pass modifiable strings to posix_spawn 2017-07-07 18:53:24 +00:00
FuzzerUtilLinux.cpp
FuzzerUtilPosix.cpp [libFuzzer] Don't replace custom signal handlers. 2017-05-25 01:43:13 +00:00
FuzzerUtilWindows.cpp Fix the includes in lib/Fuzzer on Windows that have ordering 2017-06-06 23:28:01 +00:00
FuzzerValueBitMap.h [libFuzzer] delete stale code 2017-07-20 20:15:13 +00:00
README.txt

Move to http://llvm.org/docs/LibFuzzer.html