about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-02-08 10:29:33 +0100
committerGitHub <noreply@github.com>2024-02-08 10:29:33 +0100
commit42c663e7c76bd3abee2c6a84dd689bcfea3f59dc (patch)
tree4cd6a72df75e30763c9868aa8e8e9580a8a4fa5f /src/afl-fuzz-init.c
parente0e8645d6c7ecd96815939e19ec75bb8e2bd37df (diff)
parent956fa95d77ac3cbc43cd44b56bffc605e2a2090e (diff)
downloadafl++-42c663e7c76bd3abee2c6a84dd689bcfea3f59dc.tar.gz
Merge pull request #1965 from CodeLinaro/stateful
replay mode support
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 76291cc4..54760744 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -1921,6 +1921,9 @@ static void handle_existing_out_dir(afl_state_t *afl) {
 
   }
 
+#ifdef AFL_PERSISTENT_RECORD
+  delete_files(fn, RECORD_PREFIX);
+#endif
   if (delete_files(fn, CASE_PREFIX)) { goto dir_cleanup_failed; }
   ck_free(fn);
 
@@ -1953,6 +1956,9 @@ static void handle_existing_out_dir(afl_state_t *afl) {
 
   }
 
+#ifdef AFL_PERSISTENT_RECORD
+  delete_files(fn, RECORD_PREFIX);
+#endif
   if (delete_files(fn, CASE_PREFIX)) { goto dir_cleanup_failed; }
   ck_free(fn);