Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove observer_stdout/observer_stderr from Observer trait #2167

Merged
merged 6 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fuzzers/nyx_libxml2_parallel/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use libafl_bolts::{
shmem::{ShMemProvider, StdShMemProvider},
tuples::tuple_list,
};
use libafl_nyx::{executor::NyxExecutor, helper::NyxHelper, settings::NyxSettings};
use libafl_nyx::{executor::NyxExecutorBuilder, helper::NyxHelper, settings::NyxSettings};

fn main() {
let shmem_provider = StdShMemProvider::new().expect("Failed to init shared memory");
Expand Down Expand Up @@ -54,7 +54,7 @@ fn main() {
let mut feedback = MaxMapFeedback::new(&observer);
let mut objective = CrashFeedback::new();
let scheduler = RandScheduler::new();
let mut executor = NyxExecutor::new(helper, tuple_list!(observer));
let mut executor = NyxExecutorBuilder::new().build(helper, tuple_list!(observer));
domenukk marked this conversation as resolved.
Show resolved Hide resolved

// If not restarting, create a State from scratch
let mut state = state.unwrap_or_else(|| {
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/nyx_libxml2_standalone/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use libafl::{
Fuzzer, StdFuzzer,
};
use libafl_bolts::{rands::StdRand, tuples::tuple_list};
use libafl_nyx::{executor::NyxExecutor, helper::NyxHelper, settings::NyxSettings};
use libafl_nyx::{executor::NyxExecutorBuilder, helper::NyxHelper, settings::NyxSettings};

fn main() {
// nyx stuff
Expand Down Expand Up @@ -44,7 +44,7 @@ fn main() {
let monitor = TuiMonitor::new(ui);

let mut mgr = SimpleEventManager::new(monitor);
let mut executor = NyxExecutor::new(helper, tuple_list!(observer));
let mut executor = NyxExecutorBuilder::new().build(helper, tuple_list!(observer));
let mutator = StdScheduledMutator::new(havoc_mutations());
let mut stages = tuple_list!(StdMutationalStage::new(mutator));

Expand Down
Loading
Loading