about summary refs log tree commit diff
path: root/qemu_mode/patches/afl-qemu-common.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-06 21:43:50 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-06 21:43:50 +0100
commite5972efa41c6371a6d1fed14492418ad0a756eae (patch)
tree8db5b5c8afc9e9b2bfd4f294b76e9fae11821320 /qemu_mode/patches/afl-qemu-common.h
parent1ece4bb7dfc617dd03a9d416108aade97579a3c1 (diff)
downloadafl++-e5972efa41c6371a6d1fed14492418ad0a756eae.tar.gz
cmplog for qemu mode
Diffstat (limited to 'qemu_mode/patches/afl-qemu-common.h')
-rw-r--r--qemu_mode/patches/afl-qemu-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h
index 4d651385..18c36f73 100644
--- a/qemu_mode/patches/afl-qemu-common.h
+++ b/qemu_mode/patches/afl-qemu-common.h
@@ -35,6 +35,9 @@
 #define __AFL_QEMU_COMMON
 
 #include "../../config.h"
+#include "../../include/cmplog.h"
+
+#define PERSISTENT_DEFAULT_MAX_CNT 1000
 
 #ifndef CPU_NB_REGS
 #define AFL_REGS_NUM 1000
@@ -74,6 +77,9 @@ extern int            persisent_retaddr_offset;
 
 extern __thread abi_ulong afl_prev_loc;
 
+extern struct cmp_map* __afl_cmp_map;
+extern __thread u32    __afl_cmp_counter;
+
 void afl_debug_dump_saved_regs();
 
 void afl_persistent_loop();