From 98d9cd067d859150dafe7863d5b151863336adae Mon Sep 17 00:00:00 2001 From: Ollrogge Date: Tue, 18 Nov 2025 12:54:59 +0000 Subject: [PATCH 1/2] Fix honggfuzz release build --- src/bin/cargo-ziggy/build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/cargo-ziggy/build.rs b/src/bin/cargo-ziggy/build.rs index 89edd4f..2e5f8c6 100644 --- a/src/bin/cargo-ziggy/build.rs +++ b/src/bin/cargo-ziggy/build.rs @@ -101,11 +101,11 @@ impl Build { ); eprintln!(" {} honggfuzz", style("Building").red().bold()); - let mut hfuzz_args = vec!["hfuzz", "build"]; - - // Add the --release argument if self.release is true + let mut hfuzz_args = vec!["hfuzz"]; if self.release { - hfuzz_args.push("--release"); + hfuzz_args.push("build") + } else { + hfuzz_args.push("build-debug") } // Second fuzzer we build: Honggfuzz From 0dc1eab8e4d8b8902bce6d175dfe2dcc003e81ed Mon Sep 17 00:00:00 2001 From: Louis Merlin Date: Tue, 18 Nov 2025 14:59:27 +0100 Subject: [PATCH 2/2] Increase sleep time when test-fuzzing --- tests/arbitrary_fuzz.rs | 2 +- tests/asan_fuzz.rs | 2 +- tests/url_fuzz.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/arbitrary_fuzz.rs b/tests/arbitrary_fuzz.rs index 8118c16..985f0e8 100644 --- a/tests/arbitrary_fuzz.rs +++ b/tests/arbitrary_fuzz.rs @@ -70,7 +70,7 @@ fn integration() { .current_dir(fuzzer_directory) .spawn() .expect("failed to run `cargo ziggy fuzz`"); - thread::sleep(Duration::from_secs(10)); + thread::sleep(Duration::from_secs(30)); kill_subprocesses_recursively(&format!("{}", fuzzer.id())); assert!(temp_dir_path diff --git a/tests/asan_fuzz.rs b/tests/asan_fuzz.rs index 05d8d59..3c33532 100644 --- a/tests/asan_fuzz.rs +++ b/tests/asan_fuzz.rs @@ -75,7 +75,7 @@ fn asan_crashes() { .current_dir(&fuzzer_directory) .spawn() .expect("failed to run `cargo ziggy fuzz`"); - thread::sleep(Duration::from_secs(40)); + thread::sleep(Duration::from_secs(30)); kill_subprocesses_recursively(&format!("{}", fuzzer.id())); assert!(temp_dir_path diff --git a/tests/url_fuzz.rs b/tests/url_fuzz.rs index d7983e6..d5c80d9 100644 --- a/tests/url_fuzz.rs +++ b/tests/url_fuzz.rs @@ -70,7 +70,7 @@ fn integration() { .current_dir(&fuzzer_directory) .spawn() .expect("failed to run `cargo ziggy fuzz`"); - thread::sleep(Duration::from_secs(10)); + thread::sleep(Duration::from_secs(30)); kill_subprocesses_recursively(&format!("{}", fuzzer.id())); assert!(temp_dir_path @@ -100,7 +100,7 @@ fn integration() { .current_dir(&fuzzer_directory) .spawn() .expect("failed to run `cargo ziggy fuzz`"); - thread::sleep(Duration::from_secs(10)); + thread::sleep(Duration::from_secs(30)); kill_subprocesses_recursively(&format!("{}", fuzzer.id())); // cargo ziggy minimize