diff options
author | van Hauser <vh@thc.org> | 2020-07-29 11:39:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 11:39:00 +0200 |
commit | 4550613f58342632061944ef09add63240d774cc (patch) | |
tree | 7896b5ec1f49b3ebe32d1466e85ea8f536ad599e /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | ff107714f1af1bd908a35ce54701da1eca8ce25d (diff) | |
parent | 015fde3703c7b67ee65d74b0f4b7b68b5d1e4d7e (diff) | |
download | afl++-4550613f58342632061944ef09add63240d774cc.tar.gz |
Merge branch 'dev' into text_inputs
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index 5f579687..63b7581d 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -620,7 +620,13 @@ static void afl_wait_tsl(CPUState *cpu, int fd) { last_tb = tb_htable_lookup(cpu, c.last_tb.pc, c.last_tb.cs_base, c.last_tb.flags, c.cf_mask); - if (last_tb) { tb_add_jump(last_tb, c.tb_exit, tb); } +#define TB_JMP_RESET_OFFSET_INVALID 0xffff + if (last_tb && (last_tb->jmp_reset_offset[c.tb_exit] != + TB_JMP_RESET_OFFSET_INVALID)) { + + tb_add_jump(last_tb, c.tb_exit, tb); + + } } |