Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka committed Jun 15, 2023
1 parent afb9bdf commit 83f3b35
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions grimoire/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ pub fn libafl_main() {
.long("report")
.help("The directory to place dumped testcases ('corpus')"),
)
.arg(
Arg::new("grammar")
.short('g')
.long("grammar")
.help("The grammar model"),
)
.arg(
Arg::new("tokens")
.short('x')
Expand All @@ -112,7 +106,7 @@ pub fn libafl_main() {
Ok(res) => res,
Err(err) => {
println!(
"Syntax: {}, [-x dictionary] -o corpus_dir -g grammar.json\n{:?}",
"Syntax: {}, [-x dictionary] -o corpus_dir\n{:?}",
env::current_exe()
.unwrap_or_else(|_| "fuzzer".into())
.to_string_lossy(),
Expand All @@ -135,16 +129,6 @@ pub fn libafl_main() {
}
}

let grammar_path = PathBuf::from(
res.get_one::<String>("grammar")
.expect("The --grammar parameter is missing")
.to_string(),
);
if !grammar_path.is_file() {
println!("{:?} is not a valid file!", &grammar_path);
return;
}

// For fuzzbench, crashes and finds are inside the same `corpus` directory, in the "queue" and "crashes" subdir.
let mut out_dir = PathBuf::from(
res.get_one::<String>("out")
Expand Down

0 comments on commit 83f3b35

Please sign in to comment.