diff options
author | van Hauser <vh@thc.org> | 2020-05-10 12:09:37 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-10 12:09:37 +0200 |
commit | 30bfd44dfd9f442d5514a7100d76d1fd3d9deb74 (patch) | |
tree | 86d3b0b14103fd2bbc01f25c40e7d55694a4701b /qemu_mode/patches/afl-qemu-common.h | |
parent | 26f8708fede1b15e6a93709d0baa2e5f481e082d (diff) | |
download | afl++-30bfd44dfd9f442d5514a7100d76d1fd3d9deb74.tar.gz |
indenting preprocessor directives breaks compilation and cant be fixed, reverting ... :-(
Diffstat (limited to 'qemu_mode/patches/afl-qemu-common.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-common.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h index af73ff8c..94f853cc 100644 --- a/qemu_mode/patches/afl-qemu-common.h +++ b/qemu_mode/patches/afl-qemu-common.h @@ -40,27 +40,27 @@ #define PERSISTENT_DEFAULT_MAX_CNT 1000 #ifdef CPU_NB_REGS -# define AFL_REGS_NUM CPU_NB_REGS +#define AFL_REGS_NUM CPU_NB_REGS #elif TARGET_ARM -# define AFL_REGS_NUM 32 +#define AFL_REGS_NUM 32 #elif TARGET_AARCH64 -# define AFL_REGS_NUM 32 +#define AFL_REGS_NUM 32 #else -# define AFL_REGS_NUM 100 +#define AFL_REGS_NUM 100 #endif /* NeverZero */ #if (defined(__x86_64__) || defined(__i386__)) && defined(AFL_QEMU_NOT_ZERO) -# define INC_AFL_AREA(loc) \ - asm volatile( \ - "incb (%0, %1, 1)\n" \ - "adcb $0, (%0, %1, 1)\n" \ - : /* no out */ \ - : "r"(afl_area_ptr), "r"(loc) \ - : "memory", "eax") +#define INC_AFL_AREA(loc) \ + asm volatile( \ + "incb (%0, %1, 1)\n" \ + "adcb $0, (%0, %1, 1)\n" \ + : /* no out */ \ + : "r"(afl_area_ptr), "r"(loc) \ + : "memory", "eax") #else -# define INC_AFL_AREA(loc) afl_area_ptr[loc]++ +#define INC_AFL_AREA(loc) afl_area_ptr[loc]++ #endif typedef void (*afl_persistent_hook_fn)(uint64_t *regs, uint64_t guest_base); |