unified forkservered run_target, fixes #308

This commit is contained in:
Dominik Maier
2020-04-14 19:27:25 +02:00
parent f4436f118c
commit 6dc36f1e6e
17 changed files with 222 additions and 354 deletions

View File

@ -493,13 +493,13 @@ void perform_dry_run(afl_state_t *afl) {
if (afl->stop_soon) return;
if (res == afl->crash_mode || res == FAULT_NOBITS)
if (res == afl->crash_mode || res == FSRV_RUN_NOBITS)
SAYF(cGRA " len = %u, map size = %u, exec speed = %llu us\n" cRST,
q->len, q->bitmap_size, q->exec_us);
switch (res) {
case FAULT_NONE:
case FSRV_RUN_OK:
if (q == afl->queue) check_map_coverage(afl);
@ -507,7 +507,7 @@ void perform_dry_run(afl_state_t *afl) {
break;
case FAULT_TMOUT:
case FSRV_RUN_TMOUT:
if (afl->timeout_given) {
@ -556,7 +556,7 @@ void perform_dry_run(afl_state_t *afl) {
}
case FAULT_CRASH:
case FSRV_RUN_CRASH:
if (afl->crash_mode) break;
@ -650,13 +650,13 @@ void perform_dry_run(afl_state_t *afl) {
FATAL("Test case '%s' results in a crash", fn);
case FAULT_ERROR:
case FSRV_RUN_ERROR:
FATAL("Unable to execute target application ('%s')", afl->argv[0]);
case FAULT_NOINST: FATAL("No instrumentation detected");
case FSRV_RUN_NOINST: FATAL("No instrumentation detected");
case FAULT_NOBITS:
case FSRV_RUN_NOBITS:
++afl->useless_at_start;