mirror of
https://github.com/uutils/diffutils.git
synced 2026-05-06 06:06:45 -04:00
skip --help args in fuzz_cmp_args since it causes process exit
This commit is contained in:
committed by
Sylvestre Ledru
parent
d11f672d29
commit
4043bb1928
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user