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-02-01 19:12:26 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-01 19:12:26 +0100
commit4384008f817f851e7fc329f24d803a5d829cb2db (patch)
tree992f3bf0aeac42b2c1e24e3c4465099ad82ca280 /qemu_mode/patches/afl-qemu-cpu-inl.h
parent86a25e64cd019b805300380a7bb283f3eeaeb84b (diff)
downloadafl++-4384008f817f851e7fc329f24d803a5d829cb2db.tar.gz
AFL_ALIGNED_ALLOC in libdislocator
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-inl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h
index aaf041df..ac847371 100644
--- a/qemu_mode/patches/afl-qemu-cpu-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-inl.h
@@ -272,7 +272,7 @@ 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... */
@@ -350,8 +350,10 @@ static void afl_forkserver(CPUState *cpu) {
        a successful run. In this case, we want to wake it up without forking
        again. */
 
-    if (WIFSTOPPED(status)) child_stopped = 1;
-    else if(unlikely(first_run && is_persistent)) exit(12); // Persistent is wrong
+    if (WIFSTOPPED(status))
+      child_stopped = 1;
+    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);