about summary refs log tree commit diff
path: root/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-09-23 21:59:27 +0200
committerhexcoder- <heiko@hexco.de>2019-09-23 21:59:27 +0200
commitd13592aea0553b18ecf5366a260b3d5d3fe91764 (patch)
tree751b631cf044ec3804103abf99a8d89719759d36 /qemu_mode/patches/afl-qemu-cpu-translate-inl.h
parent59d4b0aadb11c893d10a838fa5795286d3fd7264 (diff)
parent96c9fa0ccc4cc9b3db3e448fd685484fd271ca98 (diff)
downloadafl++-d13592aea0553b18ecf5366a260b3d5d3fe91764.tar.gz
Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-translate-inl.h')
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-translate-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-translate-inl.h b/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
index 48b11c64..126cf255 100644
--- a/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
@@ -195,7 +195,7 @@ static void afl_gen_compcov(target_ulong cur_loc, TCGv_i64 arg1, TCGv_i64 arg2,
       if (afl_persistent_ret_addr == 0) {                                     \
                                                                               \
         TCGv_ptr paddr = tcg_const_ptr(afl_persistent_addr);                  \
-        tcg_gen_st_tl(paddr, cpu_regs[R_ESP], 0);                             \
+        tcg_gen_st_tl(paddr, cpu_regs[R_ESP], persisent_retaddr_offset);      \
                                                                               \
       }                                                                       \
       tcg_gen_afl_call0(&afl_persistent_loop);                                \