fix empty range bug in colorization

This commit is contained in:
Andrea Fioraldi
2020-02-07 17:00:11 +01:00
parent ea37d8cef9
commit 1e10e452aa
3 changed files with 8 additions and 2 deletions

View File

@ -368,8 +368,10 @@ static void afl_forkserver(CPUState *cpu) {
if (WIFSTOPPED(status))
child_stopped = 1;
else if (unlikely(first_run && is_persistent))
else if (unlikely(first_run && is_persistent)) {
fprintf(stderr, "[AFL] ERROR: no persistent iteration executed\n");
exit(12); // Persistent is wrong
}
first_run = 0;
if (write(FORKSRV_FD + 1, &status, 4) != 4) exit(7);