[llvm] r286702 - [libFuzzer] use a valid ASCII string for a dummy seed corpus

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 18:27:22 PST 2016


Author: kcc
Date: Fri Nov 11 20:27:21 2016
New Revision: 286702

URL: http://llvm.org/viewvc/llvm-project?rev=286702&view=rev
Log:
[libFuzzer] use a valid ASCII string for a dummy seed corpus

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp?rev=286702&r1=286701&r2=286702&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp Fri Nov 11 20:27:21 2016
@@ -516,7 +516,7 @@ int FuzzerDriver(int *argc, char ***argv
   }
 
   if (InitialCorpus.empty()) {
-    InitialCorpus.push_back(Unit({0}));
+    InitialCorpus.push_back(Unit({'\n'}));  // Valid ASCII input.
     if (Options.Verbosity)
       Printf("INFO: A corpus is not provided, starting from an empty corpus\n");
   }




More information about the llvm-commits mailing list