summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerOptions.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-02-12 02:18:53 +0000
committerKostya Serebryany <kcc@google.com>2019-02-12 02:18:53 +0000
commitcdbb9dc9625a8ce14cb0841a4aab613b0ead23d1 (patch)
tree7814f131702cdade0fdf2a7cbfaeae0ea9b6dcfa /compiler-rt/lib/fuzzer/FuzzerOptions.h
parentcfc512ab44e20049b82e7cc61102db88f91ccc93 (diff)
downloadbcm5719-llvm-cdbb9dc9625a8ce14cb0841a4aab613b0ead23d1.tar.gz
bcm5719-llvm-cdbb9dc9625a8ce14cb0841a4aab613b0ead23d1.zip
[libFuzzer] teach the fork mode to ignore OOMs and timeouts
llvm-svn: 353792
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerOptions.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerOptions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h
index 868327d58d0..628603ff520 100644
--- a/compiler-rt/lib/fuzzer/FuzzerOptions.h
+++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h
@@ -23,6 +23,8 @@ struct FuzzingOptions {
int OOMExitCode = 71;
int InterruptExitCode = 72;
int ErrorExitCode = 77;
+ bool IgnoreTimeouts = 1;
+ bool IgnoreOOMs = 1;
int MaxTotalTimeSec = 0;
int RssLimitMb = 0;
int MallocLimitMb = 0;
OpenPOWER on IntegriCloud