diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-06-08 11:52:49 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-06-08 11:52:49 +0200 |
commit | 646237e234f74f7f70780f1d880e666fcf75c65e (patch) | |
tree | e328b06ede05d904772e02c22a3c14800f1299c7 | |
parent | b4f71c7cc7720527950cb1931912864a9aeb5e39 (diff) | |
download | afl++-646237e234f74f7f70780f1d880e666fcf75c65e.tar.gz |
fix x86 notzero
-rw-r--r-- | qemu_mode/patches/afl-qemu-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h index 92c33b50..6fac32ef 100644 --- a/qemu_mode/patches/afl-qemu-common.h +++ b/qemu_mode/patches/afl-qemu-common.h @@ -54,7 +54,7 @@ #if (defined(__x86_64__) || defined(__i386__)) && defined(AFL_QEMU_NOT_ZERO) #define INC_AFL_AREA(loc) \ asm volatile( \ - "incb (%0, %1, 1)\n" \ + "addb $1, (%0, %1, 1)\n" \ "adcb $0, (%0, %1, 1)\n" \ : /* no out */ \ : "r"(afl_area_ptr), "r"(loc) \ |