diff --git a/fuzz/fuzz_targets/fuzz_cmp_args.rs b/fuzz/fuzz_targets/fuzz_cmp_args.rs index 579cf34..667319f 100644 --- a/fuzz/fuzz_targets/fuzz_cmp_args.rs +++ b/fuzz/fuzz_targets/fuzz_cmp_args.rs @@ -11,6 +11,9 @@ fn os(s: &str) -> OsString { } fuzz_target!(|x: Vec| -> Corpus { + if x.iter().any(|a| a == "--help") { + return Corpus::Reject; + } if x.len() > 6 { // Make sure we try to parse an option when we get longer args. x[0] will be // the executable name.