From 7391c6040b041e9116bfbaed3d6dd4346e8e8aca Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Tue, 23 Jul 2024 15:02:03 +0200 Subject: [PATCH] always update textcase.file_path (#2432) --- libafl/src/corpus/inmemory_ondisk.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libafl/src/corpus/inmemory_ondisk.rs b/libafl/src/corpus/inmemory_ondisk.rs index 25dad5af7c..2be9b46abd 100644 --- a/libafl/src/corpus/inmemory_ondisk.rs +++ b/libafl/src/corpus/inmemory_ondisk.rs @@ -413,13 +413,7 @@ where file_name }; - if testcase - .file_path() - .as_ref() - .map_or(true, |path| !path.starts_with(&self.dir_path)) - { - *testcase.file_path_mut() = Some(self.dir_path.join(&file_name)); - } + *testcase.file_path_mut() = Some(self.dir_path.join(&file_name)); *testcase.filename_mut() = Some(file_name); if self.meta_format.is_some() {