about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-07-05 13:29:26 +0200
committervan Hauser <vh@thc.org>2019-07-05 13:29:26 +0200
commit0d6cddda4daa5f38029c34dc005b2e40a5898ea4 (patch)
tree1d40d1a73de9361391b3c8887b241cfb55832a50
parent18e031d3464b1c93d426299d270fea62d481bb11 (diff)
downloadafl++-0d6cddda4daa5f38029c34dc005b2e40a5898ea4.tar.gz
comment never_zero for afl-as
-rw-r--r--afl-as.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-as.h b/afl-as.h
index 2c84f9f3..9e91375d 100644
--- a/afl-as.h
+++ b/afl-as.h
@@ -189,7 +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"
+  "  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"
@@ -418,7 +418,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"
+  "  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"