diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-10-05 00:01:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-05 00:01:16 +0200 |
commit | a8ff64f704b18567fd207fcb1e55bc5bc6f3c7c8 (patch) | |
tree | dbd1a3f85d640d223f22877456ca39a1a736b0d0 /qemu_mode/patches/afl-qemu-common.h | |
parent | 9c105098ddbb5f65a24063f08ed34d09aec36b04 (diff) | |
parent | 4cf02a32a73e799f7a9fb032854117eb0d52d496 (diff) | |
download | afl++-a8ff64f704b18567fd207fcb1e55bc5bc6f3c7c8.tar.gz |
Merge pull request #74 from vanhauser-thc/multiarch_compcov
Multiarch CompCov
Diffstat (limited to 'qemu_mode/patches/afl-qemu-common.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h index e435c62f..c86b5b45 100644 --- a/qemu_mode/patches/afl-qemu-common.h +++ b/qemu_mode/patches/afl-qemu-common.h @@ -33,6 +33,12 @@ #include "../../config.h" +#ifndef CPU_NB_REGS +#define AFL_REGS_NUM 1000 +#else +#define AFL_REGS_NUM CPU_NB_REGS +#endif + /* NeverZero */ #if (defined(__x86_64__) || defined(__i386__)) && defined(AFL_QEMU_NOT_ZERO) @@ -60,7 +66,7 @@ extern unsigned char is_persistent; extern target_long persistent_stack_offset; extern unsigned char persistent_first_pass; extern unsigned char persistent_save_gpr; -extern target_ulong persistent_saved_gpr[CPU_NB_REGS]; +extern target_ulong persistent_saved_gpr[AFL_REGS_NUM]; extern int persisent_retaddr_offset; extern __thread abi_ulong afl_prev_loc; |