aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-09-05 17:40:39 +0200
committervan Hauser <vh@thc.org>2020-09-05 17:40:39 +0200
commit163e5ffd10936e6e119f643495129ab05fa3e5ec (patch)
treede4fb80ed72244b7a9be1968c724c6ccd8c65db4 /src
parentded4d093ff59b4459b04aaae9b3b7bbcdaadcdef (diff)
downloadafl++-163e5ffd10936e6e119f643495129ab05fa3e5ec.tar.gz
-p seek is now the default
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-state.c2
-rw-r--r--src/afl-fuzz.c19
2 files changed, 10 insertions, 11 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index 577fc34f..4e817843 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -87,7 +87,7 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
afl->w_end = 0.3;
afl->g_max = 5000;
afl->period_pilot_tmp = 5000.0;
- afl->schedule = EXPLORE; /* Power schedule (default: EXPLORE)*/
+ afl->schedule = SEEK; /* Power schedule (default: SEEK) */
afl->havoc_max_mult = HAVOC_MAX_MULT;
afl->clear_screen = 1; /* Window resized? */
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index a8816cb3..5b96ef45 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -89,11 +89,10 @@ static void usage(u8 *argv0, int more_help) {
" -o dir - output directory for fuzzer findings\n\n"
"Execution control settings:\n"
- " -p schedule - power schedules compute a seed's performance score. "
- "<explore\n"
- " (default), fast, coe, lin, quad, exploit, mmopt, "
- "rare, seek>\n"
- " see docs/power_schedules.md\n"
+ " -p schedule - power schedules compute a seed's performance score:\n"
+ " <seek (default), explore, rare, exploit, mmopt, coe, "
+ "fast,\n"
+ " lin, quad> -- see docs/power_schedules.md\n"
" -f file - location read by the fuzzed program (default: stdin "
"or @@)\n"
" -t msec - timeout for each run (auto-scaled, 50-%d ms)\n"
@@ -349,15 +348,15 @@ int main(int argc, char **argv_orig, char **envp) {
afl->schedule = RARE;
- } else if (!stricmp(optarg, "seek")) {
+ } else if (!stricmp(optarg, "explore") || !stricmp(optarg, "afl")) {
- afl->schedule = SEEK;
+ afl->schedule = EXPLORE;
- } else if (!stricmp(optarg, "explore") || !stricmp(optarg, "default") ||
+ } else if (!stricmp(optarg, "seek") || !stricmp(optarg, "default") ||
- !stricmp(optarg, "normal") || !stricmp(optarg, "afl")) {
+ !stricmp(optarg, "normal")) {
- afl->schedule = EXPLORE;
+ afl->schedule = SEEK;
} else {