Skip to content

Commit

Permalink
Clean up afl-flags flag
Browse files Browse the repository at this point in the history
  • Loading branch information
louismerlin committed Jan 17, 2024
1 parent 1e0bf84 commit 33d6ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/cargo-ziggy/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl Fuzz {
mutation_option,
&timeout_option_afl,
&dictionary_option,
&self.afl_flags,
&self.afl_flags.clone().unwrap_or_default(),
&format!("./target/afl/debug/{}", self.target),
]
.iter()
Expand Down
4 changes: 2 additions & 2 deletions src/bin/cargo-ziggy/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ pub struct Fuzz {
start_time: std::time::Instant,

/// Pass flags to AFL++ directly
#[clap(short = 'a', long = "afl-flags", value_name = "FLAGS", default_value="")]
afl_flags: String,
#[clap(short, long)]
afl_flags: Option<String>,
}

#[derive(Args)]
Expand Down

0 comments on commit 33d6ad1

Please sign in to comment.