From e22ba031f552bf41fb24286b54c0417d5ddd464a Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Tue, 11 Feb 2020 21:29:36 +0100 Subject: AFL_ENTRYPOINT instruction granularity --- qemu_mode/patches/afl-qemu-common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qemu_mode/patches/afl-qemu-common.h') diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h index 4303a5e6..f2a44ba3 100644 --- a/qemu_mode/patches/afl-qemu-common.h +++ b/qemu_mode/patches/afl-qemu-common.h @@ -69,7 +69,7 @@ typedef void (*afl_persistent_hook_fn)(uint64_t *regs, uint64_t guest_base); extern unsigned char *afl_area_ptr; extern unsigned int afl_inst_rms; -extern abi_ulong afl_start_code, afl_end_code; +extern abi_ulong afl_entry_point, afl_start_code, afl_end_code; extern abi_ulong afl_persistent_addr; extern abi_ulong afl_persistent_ret_addr; extern u8 afl_compcov_level; @@ -88,6 +88,9 @@ extern __thread abi_ulong afl_prev_loc; extern struct cmp_map *__afl_cmp_map; extern __thread u32 __afl_cmp_counter; +void afl_setup(void); +void afl_forkserver(CPUState *cpu); + void afl_debug_dump_saved_regs(); void afl_persistent_loop(); -- cgit 1.4.1