[PATCH] D47271: [libFuzzer] Don't complain about lack of interesting inputs when -runs=0.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 23 12:46:27 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT333116: [libFuzzer] Don't complain about lack of interesting inputs when -runs=0. (authored by Dor1s, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47271?vs=148255&id=148271#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D47271
Files:
lib/fuzzer/FuzzerLoop.cpp
Index: lib/fuzzer/FuzzerLoop.cpp
===================================================================
--- lib/fuzzer/FuzzerLoop.cpp
+++ lib/fuzzer/FuzzerLoop.cpp
@@ -743,7 +743,7 @@
Printf("INFO: %zd/%zd inputs touch the focus function\n",
Corpus.NumInputsThatTouchFocusFunction(), Corpus.size());
- if (Corpus.empty()) {
+ if (Corpus.empty() && Options.MaxNumberOfRuns) {
Printf("ERROR: no interesting inputs were found. "
"Is the code instrumented for coverage? Exiting.\n");
exit(1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47271.148271.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180523/66ba9f7a/attachment.bin>
More information about the llvm-commits
mailing list