diff --git a/libafl/src/fuzzer/mod.rs b/libafl/src/fuzzer/mod.rs index e3334dec1c..2a2072d9d1 100644 --- a/libafl/src/fuzzer/mod.rs +++ b/libafl/src/fuzzer/mod.rs @@ -303,6 +303,10 @@ 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 { + eprintln!("Warning: fuzzing loop ended with no last element"); + ret = Some(crate::corpus::CorpusId(0)); + } Ok(ret.unwrap()) } }