diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-07 17:00:11 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-07 17:00:11 +0100 |
commit | 1e10e452aaa366c3d06e7eda9f56f127fbf25319 (patch) | |
tree | 8fa43f52a48f5fe7ef1a54f61f2c4466dd777276 /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | ea37d8cef9648dfbe317517959be3d4eb9cb6cc7 (diff) | |
download | afl++-1e10e452aaa366c3d06e7eda9f56f127fbf25319.tar.gz |
fix empty range bug in colorization
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index 0ae6364b..9a98fde3 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -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); |