about summary refs log tree commit diff
path: root/qemu_mode/patches/afl-qemu-cpu-inl.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-01-31 19:07:13 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-01-31 19:07:13 +0100
commit677581bb0f4b4894ff5792ed332c8527635b8c77 (patch)
tree0d18983eb95ee0095088e02230f53e53bca00747 /qemu_mode/patches/afl-qemu-cpu-inl.h
parentf2511a39ae795469d661a8d1a6347ca281e2b80f (diff)
downloadafl++-677581bb0f4b4894ff5792ed332c8527635b8c77.tar.gz
hotfix
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h
index 73be87ce..aaf041df 100644
--- a/qemu_mode/patches/afl-qemu-cpu-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-inl.h
@@ -351,7 +351,7 @@ static void afl_forkserver(CPUState *cpu) {
        again. */
 
     if (WIFSTOPPED(status)) child_stopped = 1;
-    else if(unlikely(first_run)) exit(12); // Persistent is wrong
+    else if(unlikely(first_run && is_persistent)) exit(12); // Persistent is wrong
     first_run = 0;
 
     if (write(FORKSRV_FD + 1, &status, 4) != 4) exit(7);