diff --git a/libafl/src/corpus/inmemory_ondisk.rs b/libafl/src/corpus/inmemory_ondisk.rs index c2e0a5536b..8afccf93cb 100644 --- a/libafl/src/corpus/inmemory_ondisk.rs +++ b/libafl/src/corpus/inmemory_ondisk.rs @@ -442,7 +442,12 @@ impl InMemoryOnDiskCorpus { *testcase.metadata_path_mut() = Some(metafile_path); } - self.store_input_from(testcase)?; + if let Err(err) = self.store_input_from(testcase) { + if self.locking { + return Err(err); + } + log::error!("An error occurred when trying to write a testcase without locking: {err}"); + } Ok(()) }