Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Improve error output in libfuzzer verification (#3355)
Browse files Browse the repository at this point in the history
  • Loading branch information
tevoinea authored Jul 31, 2023
1 parent 733247c commit 55aa7e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agent/onefuzz/src/libfuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ impl LibFuzzer {

if !result.status.success() {
bail!(
"libFuzzer failed when parsing an initial seed {:?}: stdout:{:?} stderr:{:?}",
"libFuzzer failed when parsing an initial seed {:?}: cmd:{:?} exit_code: {:?} stdout:{:?} stderr:{:?}",
input.file_name().unwrap_or_else(|| input.as_ref()),
cmd,
result.status,
String::from_utf8_lossy(&result.stdout),
String::from_utf8_lossy(&result.stderr),
);
Expand Down

0 comments on commit 55aa7e5

Please sign in to comment.