about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-04-26 20:19:00 +0200
committervanhauser-thc <vh@thc.org>2021-04-26 20:19:08 +0200
commitbd38fb672211b571667eeb6d760114dd2ab0c9ec (patch)
tree711177e5c42e58fc2dde6a84dbfde4a3426e0d15
parent4d40afe54f8365453dc3be5d1c2db5d06d42e448 (diff)
downloadafl++-bd38fb672211b571667eeb6d760114dd2ab0c9ec.tar.gz
fix qdbi
-rwxr-xr-xutils/qbdi_mode/template.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/qbdi_mode/template.cpp b/utils/qbdi_mode/template.cpp
index b2066cc8..888ecb58 100755
--- a/utils/qbdi_mode/template.cpp
+++ b/utils/qbdi_mode/template.cpp
@@ -25,7 +25,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) \