Merge pull request #1965 from CodeLinaro/stateful

replay mode support
This commit is contained in:
van Hauser
2024-02-08 10:29:33 +01:00
committed by GitHub
14 changed files with 528 additions and 32 deletions

View File

@ -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);