mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
[fuzzer] add option -save_minimized_corpus
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -139,6 +139,8 @@ int main(int argc, char **argv) {
|
||||
if (F.CorpusSize() == 0)
|
||||
F.AddToCorpus(Unit()); // Can't fuzz empty corpus, so add an empty input.
|
||||
F.ShuffleAndMinimize();
|
||||
if (Flags.save_minimized_corpus)
|
||||
F.SaveCorpus();
|
||||
F.Loop(Flags.iterations < 0 ? INT_MAX : Flags.iterations);
|
||||
if (Flags.verbosity)
|
||||
std::cerr << "Done\n";
|
||||
|
Reference in New Issue
Block a user