about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-06-12 08:43:30 +0200
committervanhauser-thc <vh@thc.org>2023-06-12 08:43:30 +0200
commit25eba95bbaf58539c65088fc8bc143ed30ad82b9 (patch)
tree5cfb16157cf3002da3ce09e4ce6a3828017419b5
parent6ec70fc0847a0624692e868743080bf4e6935523 (diff)
downloadafl++-25eba95bbaf58539c65088fc8bc143ed30ad82b9.tar.gz
update new feature config
-rw-r--r--include/config.h2
-rw-r--r--src/afl-fuzz-stats.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/config.h b/include/config.h
index b767d526..09d8620d 100644
--- a/include/config.h
+++ b/include/config.h
@@ -47,7 +47,7 @@
    switches to exploitation mode. It automatically switches back when new
    coverage is found.
    Default: 300 (seconds) */
-#define STRATEGY_SWITCH_TIME 300
+#define STRATEGY_SWITCH_TIME 600
 
 /* Default file permission umode when creating files (default: 0600) */
 #define DEFAULT_PERMISSION 0600
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index 9a60fd47..1499a7e4 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -48,11 +48,11 @@ char *get_fuzzing_state(afl_state_t *afl) {
     u64 percent_cur = last_find_100 / cur_run_time;
     u64 percent_total = last_find_100 / cur_total_run_time;
 
-    if (unlikely(percent_cur >= 90 && percent_total >= 90)) {
+    if (unlikely(percent_cur >= 80 && percent_total >= 80)) {
 
       return fuzzing_state[3];
 
-    } else if (unlikely(percent_cur >= 75 && percent_total >= 75)) {
+    } else if (unlikely(percent_cur >= 55 && percent_total >= 55)) {
 
       return fuzzing_state[2];