Skip to content

Commit

Permalink
Fix baby fuzzer tui (#2425)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka authored Jul 18, 2024
1 parent 56d70ac commit 78a30c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fuzzers/baby_fuzzer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::ptr::write_volatile;
use std::{path::PathBuf, ptr::write};

#[cfg(feature = "tui")]
use libafl::monitors::tui::{ui::TuiUI, TuiMonitor};
use libafl::monitors::tui::TuiMonitor;
#[cfg(not(feature = "tui"))]
use libafl::monitors::SimpleMonitor;
use libafl::{
Expand Down Expand Up @@ -90,9 +90,10 @@ pub fn main() {
#[cfg(not(feature = "tui"))]
let mon = SimpleMonitor::new(|s| println!("{s}"));
#[cfg(feature = "tui")]
let ui = TuiUI::with_version(String::from("Baby Fuzzer"), String::from("0.0.1"), false);
#[cfg(feature = "tui")]
let mon = TuiMonitor::new(ui);
let mon = TuiMonitor::builder()
.title("Baby Fuzzer")
.enhanced_graphics(false)
.build();

// The event manager handle the various events generated during the fuzzing loop
// such as the notification of the addition of a new item to the corpus
Expand Down

0 comments on commit 78a30c4

Please sign in to comment.