Skip to content

Commit

Permalink
Merge pull request #103 from srlabs/fix/build-only-if-no-binary
Browse files Browse the repository at this point in the history
build fuzzers only if not fuzzing with -b
  • Loading branch information
louismerlin authored Oct 15, 2024
2 parents 210c957 + 3a068bb commit 534aadb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/bin/cargo-ziggy/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ impl Fuzz {

// Manages the continuous running of fuzzers
pub fn fuzz(&mut self) -> Result<(), anyhow::Error> {
let build = Build {
no_afl: !self.afl(),
no_honggfuzz: !self.honggfuzz(),
release: self.release,
};
build.build().context("Failed to build the fuzzers")?;
if !self.fuzz_binary() {
let build = Build {
no_afl: !self.afl(),
no_honggfuzz: !self.honggfuzz(),
release: self.release,
};
build.build().context("Failed to build the fuzzers")?;
}

info!("Running fuzzer");

Expand Down

0 comments on commit 534aadb

Please sign in to comment.