MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / sanitize_false_alarm_crashes

Function sanitize_false_alarm_crashes

src/program/libfuzzer.rs:690–702  ·  view source on GitHub ↗
(crashes: Vec<PathBuf>, deopt: &Deopt)

Source from the content-addressed store, hash-verified

688 }
689
690 fn sanitize_false_alarm_crashes(crashes: Vec<PathBuf>, deopt: &Deopt) -> Result<Vec<PathBuf>> {
691 let mut retained = Vec::new();
692 for fuzz_entry in crashes {
693 if is_incident_reproducible(&fuzz_entry, deopt)? {
694 log::info!("{fuzz_entry:?} is reproducible.");
695 retained.push(fuzz_entry);
696 } else {
697 log::debug!("{fuzz_entry:?} is sanitized due to irreproducible.");
698 std::fs::remove_dir_all(fuzz_entry)?;
699 }
700 }
701 Ok(retained)
702 }
703
704 fn is_artcraft_file(file: &Path) -> bool {
705 if let Some(file_name) = file.file_name() {

Callers 1

sanitize_crashFunction · 0.85

Calls 2

is_incident_reproducibleFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected