forked from gentoo-utils/gentoo-utils
print the remaining input on fuzzer failures
This commit is contained in:
@@ -77,8 +77,8 @@ pub unsafe extern "C" fn LLVMFuzzerTestOneInput(input: *const u8, len: usize) ->
|
|||||||
(false, Err(_)) => {
|
(false, Err(_)) => {
|
||||||
eprintln!("agreement that {atom} is invalid");
|
eprintln!("agreement that {atom} is invalid");
|
||||||
}
|
}
|
||||||
(true, Err(_)) => {
|
(true, Err(ParserFinishedError::Err(it) | ParserFinishedError::Unfinished(it))) => {
|
||||||
panic!("rejected valid atom: {atom}");
|
panic!("rejected valid atom: {atom}: {}", it.rest());
|
||||||
}
|
}
|
||||||
(false, Ok(atom))
|
(false, Ok(atom))
|
||||||
if atom.usedeps().iter().any(|usedep| {
|
if atom.usedeps().iter().any(|usedep| {
|
||||||
|
|||||||
Reference in New Issue
Block a user