Make atheris load multiple tokens files (#2382)
This commit is contained in:
parent
081c218737
commit
fa4241f4f8
@ -176,11 +176,11 @@ pub extern "C" fn LLVMFuzzerRunDriver(
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Create a dictionary if not existing
|
// Create a dictionary if not existing
|
||||||
if state.metadata_map().get::<Tokens>().is_none() {
|
state.metadata_or_insert_with(|| {
|
||||||
for tokens_file in &token_files {
|
Tokens::new()
|
||||||
state.add_metadata(Tokens::from_file(tokens_file)?);
|
.add_from_files(&token_files)
|
||||||
}
|
.expect("Could not read tokens files.")
|
||||||
}
|
});
|
||||||
|
|
||||||
// A minimization+queue policy to get testcasess from the corpus
|
// A minimization+queue policy to get testcasess from the corpus
|
||||||
let scheduler =
|
let scheduler =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user