Skip to content

Commit

Permalink
Maybe fix empty observer?
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Sep 9, 2024
1 parent 6a3e8e7 commit ab53217
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use libafl::monitors::{AggregatorOps, UserStatsValue};
use libafl::mutators::StdScheduledMutator;
use libafl::observers::TimeObserver;
use libafl::prelude::{
BytesInput, CanTrack, DifferentIsNovel, Executor, ExplicitTracking, Feedback, MapFeedback,
MaxReducer,
BytesInput, CanTrack, DifferentIsNovel, Executor, ExplicitTracking, Feedback, HasObservers,
MapFeedback, MaxReducer,
};
use libafl::schedulers::{
powersched::PowerSchedule, IndexesLenTimeMinimizerScheduler, PowerQueueScheduler,
Expand All @@ -23,6 +23,7 @@ use libafl_bolts::current_time;
use openapiv3::OpenAPI;

use core::marker::PhantomData;
use std::ops::DerefMut;
#[allow(unused_imports)]
use libafl::Fuzzer; // This may be marked unused, but will make the compiler give you crucial error messages
use libafl::{
Expand Down Expand Up @@ -261,7 +262,7 @@ pub fn fuzz() -> Result<()> {
// Create the executor for an in-process function with just one observer
let mut executor = InProcessExecutor::new(
&mut harness,
collective_observer.clone(),
collective_observer,
&mut fuzzer,
&mut state,
&mut mgr,
Expand Down Expand Up @@ -301,7 +302,7 @@ pub fn fuzz() -> Result<()> {
&mut mgr,
&input,
&ExecuteInputResult::None,
&collective_observer,
executor.observers_mut().deref_mut(),
)?;
}

Expand Down

0 comments on commit ab53217

Please sign in to comment.