allow fuzzer disagreements where there are duplicated usedeps in the atom
All checks were successful
All checks were successful
Portage rejects atoms with duplicated usedeps that are otherwise valid, gentoo-utils accepts these as valid however. So we will not panic on cases of disagreement where the control side fails and we detect duplicated usedeps.
This commit is contained in:
@@ -56,6 +56,16 @@ pub unsafe extern "C" fn LLVMFuzzerTestOneInput(input: *const u8, len: usize) ->
|
||||
(Ok(_), Err(rest)) => {
|
||||
panic!("disagreement on {str}\ncontrol:Ok\ngentoo-utils:Err({rest})");
|
||||
}
|
||||
(Err(_), Ok(atom))
|
||||
if atom
|
||||
.usedeps()
|
||||
.iter()
|
||||
.any(|usedep| atom.usedeps().iter().filter(|u| usedep == *u).count() > 1) =>
|
||||
{
|
||||
eprintln!(
|
||||
"disagreement, but we will allow it since its probably because of duplicated usdeps"
|
||||
);
|
||||
}
|
||||
(Err(_), Ok(_)) => {
|
||||
panic!("disagreement on {str}\ncontrol:Err\ngentoo-utils:Ok")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user