From 677581bb0f4b4894ff5792ed332c8527635b8c77 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Fri, 31 Jan 2020 19:07:13 +0100 Subject: hotfix --- qemu_mode/patches/afl-qemu-cpu-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h') 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); -- cgit 1.4.1