Skip to content

Commit 9873a0b

Browse files
tokatokarmalmain
authored andcommitted
Cleanup for #3035 (#3059)
1 parent cfcb96e commit 9873a0b

File tree

2 files changed

+4
-4
lines changed
  • fuzzers/inprocess/fuzzbench/src
  • libafl/src/feedbacks

2 files changed

+4
-4
lines changed

fuzzers/inprocess/fuzzbench/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn fuzz(
260260
let mut feedback = feedback_or!(
261261
// New maximization map feedback linked to the edges observer and the feedback state
262262
map_feedback,
263-
CrashFeedback::new(),
263+
// CrashFeedback::new(),
264264
);
265265

266266
// A feedback to choose if an input is a solution or not
@@ -390,9 +390,9 @@ fn fuzz(
390390
#[cfg(unix)]
391391
{
392392
let null_fd = file_null.as_raw_fd();
393-
// dup2(null_fd, io::stdout().as_raw_fd())?;
393+
dup2(null_fd, io::stdout().as_raw_fd())?;
394394
if std::env::var("LIBAFL_FUZZBENCH_DEBUG").is_err() {
395-
// dup2(null_fd, io::stderr().as_raw_fd())?;
395+
dup2(null_fd, io::stderr().as_raw_fd())?;
396396
}
397397
}
398398
// reopen file to make sure we're at the end

libafl/src/feedbacks/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ where
617617

618618
let mut interesting = false;
619619
// TODO Replace with match_name_type when stable
620-
let observer = observers.get(&self.map_ref).unwrap().as_ref();
620+
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();
621621

622622
let map_state = state
623623
.named_metadata_map_mut()

0 commit comments

Comments
 (0)