low prio warnings--

This commit is contained in:
Alwin Berger 2024-08-26 15:16:25 +02:00
parent c785e0db86
commit 9d83ddbd69
4 changed files with 7 additions and 5 deletions

View File

@ -361,7 +361,7 @@ let run_client = |state: Option<_>, mut mgr, _core_id| {
.find(|pc| (breakpoint..breakpoint + 5).contains(pc.as_ref().unwrap_or(&0)))
{
Some(_) => ExitKind::Ok,
None => ExitKind::Crash,
Option::None => ExitKind::Crash,
}
}
};
@ -556,7 +556,7 @@ let run_client = |state: Option<_>, mut mgr, _core_id| {
}
match time {
None => {
Option::None => {
fuzzer
.fuzz_loop(&mut stages, &mut executor, &mut state, &mut mgr)
.unwrap();

View File

@ -280,7 +280,7 @@ fn trigger_collection(emulator: &libafl_qemu::Qemu, edge: (GuestAddr, GuestAddr)
let mut buf : [u8; 4] = [0,0,0,0];
match h.input_counter {
Some(s) => unsafe { emulator.read_mem(s, &mut buf); },
None => (),
Option::None => (),
};
systemstate.input_counter = GuestAddr::from_le_bytes(buf);
@ -436,6 +436,7 @@ where
}
//============================= Read Hooks
#[allow(unused)]
pub fn gen_read_is_input<QT, S>(
hooks: &mut QemuHooks<QT, S>,
_state: Option<&mut S>,
@ -459,6 +460,7 @@ where
static mut INPUT_MEM : Range<GuestAddr> = 0..0;
static mut MEM_READ : Option<HashSet<GuestAddr>> = None;
#[allow(unused)]
pub fn trace_reads<QT, S>(
_hooks: &mut QemuHooks<QT, S>,
_state: Option<&mut S>,

View File

@ -188,7 +188,7 @@ where
// println!("normal next: {}", (*c).0);
return Ok((*c).0.into())
},
None => {
Option::None => {
swap(&mut to_remove, &mut gm.current_gen);
swap(&mut gm.next_gen, &mut gm.current_gen);
gm.current_gen.sort_by(|a, b| a.1.partial_cmp(&b.1).unwrap());

View File

@ -335,7 +335,7 @@ where
// But as the state may grow to a few megabytes,
// for now we won' and the user has to do it (unless we find a way to do this on `Drop`).
if let None = ret {
if ret.is_none() {
eprintln!("Warning: fuzzing loop ended with no last element");
ret = Some(crate::corpus::CorpusId(0));
}