aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-05 09:33:09 +0200
committervanhauser-thc <vh@thc.org>2023-04-05 09:33:09 +0200
commit53b70ef104a334424fd5226c7504130b3bd45625 (patch)
tree31f6218396ac50339181154fa0b4b9bfff86feb1 /src
parent41a452d4e8038461f730736439346eb8a7a3968f (diff)
downloadafl++-53b70ef104a334424fd5226c7504130b3bd45625.tar.gz
mut changes
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index e6b58713..bc267b15 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2659,7 +2659,7 @@ havoc_stage:
case MUT_FLIP8: {
- /* Flip byte. */
+ /* Flip byte with a XOR 0xff. This is the same as NEG. */
#ifdef INTROSPECTION
snprintf(afl->m_tmp, sizeof(afl->m_tmp), " FLIP8_");
@@ -2987,21 +2987,6 @@ havoc_stage:
}
- case MUT_NEG: {
-
- /* Neg byte. */
-
-#ifdef INTROSPECTION
- snprintf(afl->m_tmp, sizeof(afl->m_tmp), " NEG_");
- strcat(afl->mutation, afl->m_tmp);
-#endif
- item = rand_below(afl, temp_len);
-
- out_buf[item] = ~out_buf[item];
- break;
-
- }
-
case MUT_INSERTASCIINUM: {
u32 len = 1 + rand_below(afl, 8);