aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-02-01 16:28:52 +0100
committervan Hauser <vh@thc.org>2021-02-01 16:28:52 +0100
commit80fc6166d0aeaf6332a00c369f7bdb872066e1b9 (patch)
treed9efd244e6c61af1a7ec540f5f960ed8cefc7beb
parent4018e7f8e5e45ccef83d740d7bc2514dc4f602f0 (diff)
downloadafl++-80fc6166d0aeaf6332a00c369f7bdb872066e1b9.tar.gz
adjust expand havoc
-rw-r--r--src/afl-fuzz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 62560724..4a23d99d 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1779,6 +1779,7 @@ printf("NEW MAP SIZE2 %u (is %u)\n", new_map_size, map_size);
break;
case 1:
// add MOpt mutator
+ /*
if (afl->limit_time_sig == 0 && !afl->custom_only &&
!afl->python_only) {
@@ -1786,12 +1787,11 @@ printf("NEW MAP SIZE2 %u (is %u)\n", new_map_size, map_size);
afl->limit_time_puppet = 0;
}
-
+ */
afl->expand_havoc = 2;
- if (afl->cmplog_lvl < 2) afl->cmplog_lvl = 2;
+ if (afl->cmplog_lvl && afl->cmplog_lvl < 2) afl->cmplog_lvl = 2;
break;
case 2:
- // if (!have_p) afl->schedule = EXPLOIT;
// increase havoc mutations per fuzz attempt
afl->havoc_stack_pow2++;
afl->expand_havoc = 3;
@@ -1803,11 +1803,11 @@ printf("NEW MAP SIZE2 %u (is %u)\n", new_map_size, map_size);
break;
case 4:
afl->expand_havoc = 5;
- if (afl->cmplog_lvl < 3) afl->cmplog_lvl = 3;
+ if (afl->cmplog_lvl && afl->cmplog_lvl < 3) afl->cmplog_lvl = 3;
break;
case 5:
// if not in sync mode, enable deterministic mode?
- if (!afl->sync_id) afl->skip_deterministic = 0;
+ //if (!afl->sync_id) afl->skip_deterministic = 0;
afl->expand_havoc = 6;
case 6:
// nothing else currently