mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 04:58:08 +00:00
stop the fuzzer if AFL_QEMU_PERSISTENT_ADDR is wrong
This commit is contained in:
@ -272,6 +272,8 @@ static void afl_forkserver(CPUState *cpu) {
|
||||
if (write(FORKSRV_FD + 1, tmp, 4) != 4) return;
|
||||
|
||||
afl_forksrv_pid = getpid();
|
||||
|
||||
int first_run = 1;
|
||||
|
||||
/* All right, let's await orders... */
|
||||
|
||||
@ -349,6 +351,8 @@ static void afl_forkserver(CPUState *cpu) {
|
||||
again. */
|
||||
|
||||
if (WIFSTOPPED(status)) child_stopped = 1;
|
||||
else if(unlikely(first_run)) exit(12); // Persistent is wrong
|
||||
first_run = 0;
|
||||
|
||||
if (write(FORKSRV_FD + 1, &status, 4) != 4) exit(7);
|
||||
|
||||
|
Reference in New Issue
Block a user