diff options
author | van Hauser <vh@thc.org> | 2019-10-04 10:33:28 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-10-04 10:33:28 +0200 |
commit | 9c105098ddbb5f65a24063f08ed34d09aec36b04 (patch) | |
tree | e7c1e0d6db0c04ea41719c979dc13829e1adeeaa /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | 9af6395e92a0f5aafcbd5e58b12a162fa7fe5d8c (diff) | |
download | afl++-9c105098ddbb5f65a24063f08ed34d09aec36b04.tar.gz |
general maintance
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index cfea04d6..209944ee 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -185,7 +185,7 @@ static void afl_setup(void) { afl_end_code = (abi_ulong)-1; } - + if (getenv("AFL_CODE_START")) afl_start_code = strtoll(getenv("AFL_CODE_START"), NULL, 16); if (getenv("AFL_CODE_END")) @@ -216,12 +216,12 @@ static void afl_setup(void) { /* If AFL_QEMU_PERSISTENT_RET is not specified patch the return addr */ } - - if (getenv("AFL_QEMU_PERSISTENT_GPR")) - persistent_save_gpr = 1; - + + if (getenv("AFL_QEMU_PERSISTENT_GPR")) persistent_save_gpr = 1; + if (getenv("AFL_QEMU_PERSISTENT_RETADDR_OFFSET")) - persisent_retaddr_offset = strtoll(getenv("AFL_QEMU_PERSISTENT_RETADDR_OFFSET"), NULL, 16); + persisent_retaddr_offset = + strtoll(getenv("AFL_QEMU_PERSISTENT_RETADDR_OFFSET"), NULL, 16); if (getenv("AFL_QEMU_PERSISTENT_CNT")) afl_persistent_cnt = strtoll(getenv("AFL_QEMU_PERSISTENT_CNT"), NULL, 16); |