mut changes

This commit is contained in:
vanhauser-thc
2023-04-05 09:33:09 +02:00
parent 41a452d4e8
commit 53b70ef104
2 changed files with 37 additions and 63 deletions

View File

@ -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);