This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/agent/onefuzz-task/src/tasks/fuzz/libfuzzer Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ where
369369 Err ( e) => {
370370 if e. kind ( ) == std:: io:: ErrorKind :: NotFound {
371371 // okay, no crash dump found
372- warn ! ( "no crash dump found with name: {}" , filename) ;
372+ info ! ( "no crash dump found with name: {}" , filename) ;
373373 } else {
374374 return Err ( e) . context ( "moving crash dump to output directory" ) ;
375375 }
@@ -385,6 +385,7 @@ where
385385 let dumpfile_extension = Some ( std:: ffi:: OsStr :: new ( "dmp" ) ) ;
386386
387387 let mut working_dir = tokio:: fs:: read_dir ( "." ) . await ?;
388+ let mut found_dump = false ;
388389 while let Some ( next) = working_dir. next_entry ( ) . await ? {
389390 if next. path ( ) . extension ( ) == dumpfile_extension {
390391 // Windows dumps get a fixed filename so we will generate a random one,
@@ -400,9 +401,14 @@ where
400401 next. path( ) . display( ) ,
401402 dest_path. display( )
402403 ) ;
404+ found_dump = true ;
403405 break ;
404406 }
405407 }
408+
409+ if !found_dump {
410+ info ! ( "no crash dump found with extension .dmp" ) ;
411+ }
406412 }
407413
408414 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments