aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-10-10 10:55:56 +0200
committervan Hauser <vh@thc.org>2020-10-10 10:55:56 +0200
commit445aba9221471eebd7ffc2c35b97accd00b40557 (patch)
tree82f7e9799ead0cb12ebc1406add5dfa59d78390e /src
parent5dc3bc175b664f0921ebd1265d4419d611aa4a74 (diff)
downloadafl++-445aba9221471eebd7ffc2c35b97accd00b40557.tar.gz
determinstic fuzzing is now disabled by default
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-state.c2
-rw-r--r--src/afl-fuzz.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index b7d44dbf..a0a2795e 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -101,6 +101,8 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
afl->hang_tmout = EXEC_TIMEOUT;
afl->stats_update_freq = 1;
afl->stats_avg_exec = -1;
+ afl->skip_deterministic = 1;
+ afl->use_splicing = 1;
#ifdef HAVE_AFFINITY
afl->cpu_aff = -1; /* Selected CPU core */
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index dc0eb4a7..24df2997 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -103,6 +103,7 @@ static void usage(u8 *argv0, int more_help) {
"mode)\n\n"
"Mutator settings:\n"
+ " -D - enable deterministic fuzzing (once per queue entry)\n"
" -L minutes - use MOpt(imize) mode and set the time limit for "
"entering the\n"
" pacemaker mode (minutes of no new paths). 0 = "
@@ -116,7 +117,6 @@ static void usage(u8 *argv0, int more_help) {
"Fuzzing behavior settings:\n"
" -N - do not unlink the fuzzing input file (for devices "
"etc.)\n"
- " -d - quick & dirty mode (skips deterministic steps)\n"
" -n - fuzz without instrumentation (non-instrumented mode)\n"
" -x dict_file - fuzzer dictionary (see README.md, specify up to 4 "
"times)\n\n"
@@ -136,6 +136,7 @@ static void usage(u8 *argv0, int more_help) {
" -F path - sync to a foreign fuzzer queue directory (requires "
"-M, can\n"
" be specified up to %u times)\n"
+ " -d - skip deterministic fuzzing in -M mode\n"
" -T text - text banner to show on the screen\n"
" -I command - execute this command/script when a new crash is "
"found\n"
@@ -403,6 +404,7 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); }
afl->sync_id = ck_strdup(optarg);
+ afl->skip_deterministic = 0;
if ((c = strchr(afl->sync_id, ':'))) {
@@ -431,8 +433,6 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); }
afl->sync_id = ck_strdup(optarg);
afl->is_secondary_node = 1;
- afl->skip_deterministic = 1;
- afl->use_splicing = 1;
break;
case 'F': /* foreign sync dir */
@@ -557,7 +557,6 @@ int main(int argc, char **argv_orig, char **envp) {
case 'd': /* skip deterministic */
afl->skip_deterministic = 1;
- afl->use_splicing = 1;
break;
case 'B': /* load bitmap */