about summary refs log tree commit diff
path: root/afl-as.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-07-14 20:02:20 +0200
committerGitHub <noreply@github.com>2019-07-14 20:02:20 +0200
commitda8e03e18a1d01cb4ea26fc8efb25c4e7708a0b5 (patch)
tree21e2f2e0bbe93341c3813d96576c5e83f62195d0 /afl-as.h
parent5c0830f62857bc00d1da386e3d204932f544a6ba (diff)
parent4a80dbdd10aedd3a3e70a0631aeb4e01438b634c (diff)
downloadafl++-da8e03e18a1d01cb4ea26fc8efb25c4e7708a0b5.tar.gz
Merge branch 'master' into shared_memory_mmap_refactor
Diffstat (limited to 'afl-as.h')
-rw-r--r--afl-as.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/afl-as.h b/afl-as.h
index 90944614..4748eda7 100644
--- a/afl-as.h
+++ b/afl-as.h
@@ -189,6 +189,7 @@ static const u8* main_payload_32 =
   "  orb  $1, (%edx, %edi, 1)\n"
 #else
   "  incb (%edx, %edi, 1)\n"
+  "  adcb $0, (%edx, %edi, 1)\n" // never zero counter implementation. slightly better path discovery and little performance impact
 #endif /* ^SKIP_COUNTS */
   "\n"
   "__afl_return:\n"
@@ -441,6 +442,7 @@ static const u8* main_payload_64 =
   "  orb  $1, (%rdx, %rcx, 1)\n"
 #else
   "  incb (%rdx, %rcx, 1)\n"
+  "  adcb $0, (%rdx, %rcx, 1)\n" // never zero counter implementation. slightly better path discovery and little performance impact
 #endif /* ^SKIP_COUNTS */
   "\n"
   "__afl_return:\n"