diff options
author | vanhauser-thc <vh@thc.org> | 2021-04-13 13:01:50 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-04-13 13:01:50 +0200 |
commit | be880f2476963b8ebebe9d8cc196e4e74104c7a6 (patch) | |
tree | 9ae79ba89167e358892e99e0caa2b266e95a55a9 /src/afl-fuzz-init.c | |
parent | 50bb931ea604a83784609dc71934a4a8f8feb156 (diff) | |
download | afl++-be880f2476963b8ebebe9d8cc196e4e74104c7a6.tar.gz |
add AFL_EXIT_ON_SEED_ISSUES
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 e505abd4..b6bfbc29 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -881,7 +881,7 @@ void perform_dry_run(afl_state_t *afl) { case FSRV_RUN_TMOUT: - if (afl->timeout_given) { + if (afl->timeout_given && !afl->afl_env.afl_exit_on_seed_issues) { /* if we have a timeout but a timeout value was given then always skip. The '+' meaning has been changed! */ @@ -1036,6 +1036,12 @@ void perform_dry_run(afl_state_t *afl) { } + if (afl->afl_env.afl_exit_on_seed_issues) { + + FATAL("As AFL_EXIT_ON_SEED_ISSUES is set, afl-fuzz exits."); + + } + /* Remove from fuzzing queue but keep for splicing */ struct queue_entry *p = afl->queue; |