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(_)) => {
|
||||
eprintln!("agreement that {atom} is invalid");
|
||||
}
|
||||
(true, Err(_)) => {
|
||||
panic!("rejected valid atom: {atom}");
|
||||
(true, Err(ParserFinishedError::Err(it) | ParserFinishedError::Unfinished(it))) => {
|
||||
panic!("rejected valid atom: {atom}: {}", it.rest());
|
||||
}
|
||||
(false, Ok(atom))
|
||||
if atom.usedeps().iter().any(|usedep| {
|
||||
|
||||
Reference in New Issue
Block a user