This commit is contained in:
Dongjia "toka" Zhang 2025-03-10 14:09:54 +01:00 committed by GitHub
parent b8387daa0f
commit 15da05f8e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -260,7 +260,7 @@ fn fuzz(
let mut feedback = feedback_or!( let mut feedback = feedback_or!(
// New maximization map feedback linked to the edges observer and the feedback state // New maximization map feedback linked to the edges observer and the feedback state
map_feedback, map_feedback,
CrashFeedback::new(), // CrashFeedback::new(),
); );
// A feedback to choose if an input is a solution or not // A feedback to choose if an input is a solution or not
@ -390,9 +390,9 @@ fn fuzz(
#[cfg(unix)] #[cfg(unix)]
{ {
let null_fd = file_null.as_raw_fd(); let null_fd = file_null.as_raw_fd();
// dup2(null_fd, io::stdout().as_raw_fd())?; dup2(null_fd, io::stdout().as_raw_fd())?;
if std::env::var("LIBAFL_FUZZBENCH_DEBUG").is_err() { if std::env::var("LIBAFL_FUZZBENCH_DEBUG").is_err() {
// dup2(null_fd, io::stderr().as_raw_fd())?; dup2(null_fd, io::stderr().as_raw_fd())?;
} }
} }
// reopen file to make sure we're at the end // reopen file to make sure we're at the end

View File

@ -617,7 +617,7 @@ where
let mut interesting = false; let mut interesting = false;
// TODO Replace with match_name_type when stable // TODO Replace with match_name_type when stable
let observer = observers.get(&self.map_ref).unwrap().as_ref(); let observer = observers.get(&self.map_ref).expect("MapObserver not found. This is likely because you entered the crash handler with the wrong executor/observer").as_ref();
let map_state = state let map_state = state
.named_metadata_map_mut() .named_metadata_map_mut()