skip --help args in fuzz_cmp_args since it causes process exit

This commit is contained in:
pocopepe
2026-04-21 13:39:11 +05:30
committed by Sylvestre Ledru
parent d11f672d29
commit 4043bb1928
+3
View File
@@ -11,6 +11,9 @@ fn os(s: &str) -> OsString {
}
fuzz_target!(|x: Vec<OsString>| -> 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.