Use InMemoryCorpus in libfuzzer_libpng (#1125)

This commit is contained in:
Dongjia "toka" Zhang 2023-03-05 23:23:42 +09:00 committed by GitHub
parent 4f7b59aca4
commit 9df95bd936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ fn fuzz(corpus_dirs: &[PathBuf], objective_dir: PathBuf, broker_port: u16) -> Re
// RNG
StdRand::with_seed(current_nanos()),
// Corpus that will be evolved, we keep it in memory for performance
OnDiskCorpus::new("corpus_out").unwrap(),
InMemoryCorpus::new(),
// Corpus in which we store solutions (crashes in this example),
// on disk so the user can get them after stopping the fuzzer
OnDiskCorpus::new(objective_dir).unwrap(),