aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle ZENG <jkjh1jkjh1@gmail.com>2020-06-07 15:14:25 -0700
committerKyle ZENG <jkjh1jkjh1@gmail.com>2020-06-07 15:14:25 -0700
commit73334207ce3d898f8c38b2998c832161c5660c17 (patch)
treece46f1445255885ab36cb4b1dec32dabf5a4338d
parent748238d6ab4aeb7f34958d4c37c5ef200ad22463 (diff)
downloadAFLplusplus-73334207ce3d898f8c38b2998c832161c5660c17.tar.gz
fix a fundamental bug: favor random branch randomly
-rw-r--r--include/afl-as.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/afl-as.h b/include/afl-as.h
index e90289d4..3c12c68f 100644
--- a/include/afl-as.h
+++ b/include/afl-as.h
@@ -192,7 +192,7 @@ static const u8 *main_payload_32 =
#ifdef SKIP_COUNTS
" orb $1, (%edx, %edi, 1)\n"
#else
- " incb (%edx, %edi, 1)\n"
+ " addb $1, (%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"
@@ -447,7 +447,7 @@ static const u8 *main_payload_64 =
#ifdef SKIP_COUNTS
" orb $1, (%rdx, %rcx, 1)\n"
#else
- " incb (%rdx, %rcx, 1)\n"
+ " addb $1, (%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"