diff options
author | van Hauser <vh@thc.org> | 2020-08-09 21:09:07 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-09 21:09:07 +0200 |
commit | ff40359a608f3c14c1025908a2810ca71fd502af (patch) | |
tree | e68ea494862d768c38fe76fc2f30b0e8e7bec412 /src/afl-fuzz-init.c | |
parent | e99d7e973001adea65c68113b08792144d6aa5c8 (diff) | |
download | afl++-ff40359a608f3c14c1025908a2810ca71fd502af.tar.gz |
fixes
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 350a3b4c..432e0649 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -961,7 +961,8 @@ void perform_dry_run(afl_state_t *afl) { } /* perform taint gathering on the input seed */ - perform_taint_run(afl, q, q->fname, use_mem, q->len); + if (afl->fsrv.taint_mode) + perform_taint_run(afl, q, q->fname, use_mem, q->len); q = q->next; @@ -1505,6 +1506,11 @@ static void handle_existing_out_dir(afl_state_t *afl) { fn = alloc_printf("%s/taint", afl->out_dir); mkdir(fn, 0755); // ignore errors + + u8 *fn2 = alloc_printf("%s/taint/.input", afl->out_dir); + unlink(fn2); // ignore errors + ck_free(fn2); + if (delete_files(fn, CASE_PREFIX)) { goto dir_cleanup_failed; } ck_free(fn); |