aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-12-05 16:15:29 +0100
committervanhauser-thc <vh@thc.org>2022-12-05 16:15:29 +0100
commitbf1617d3545b7c37b04ac8ddfdcf33943adf3bd2 (patch)
tree7a62fdb8e716e9a8eb39187b6eed2d6e39a9f709 /src
parent149366507da1ff8e3e8c4962f3abc6c8fd78b222 (diff)
downloadafl++-bf1617d3545b7c37b04ac8ddfdcf33943adf3bd2.tar.gz
fix warning
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 976d61e5..172b9d7a 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -501,7 +501,7 @@ int main(int argc, char **argv_orig, char **envp) {
s32 opt, auto_sync = 0 /*, user_set_cache = 0*/;
u64 prev_queued = 0;
- u32 sync_interval_cnt = 0, seek_to = 0, show_help = 0,
+ u32 sync_interval_cnt = 0, seek_to = 0, show_help = 0, default_output = 1,
map_size = get_map_size();
u8 *extras_dir[4];
u8 mem_limit_given = 0, exit_1 = 0, debug = 0,
@@ -802,6 +802,7 @@ int main(int argc, char **argv_orig, char **envp) {
afl->fsrv.out_file = ck_strdup(optarg);
afl->fsrv.use_stdin = 0;
+ default_output = 0;
break;
case 'x': /* dictionary */
@@ -1911,6 +1912,7 @@ int main(int argc, char **argv_orig, char **envp) {
if (aa_loc && !afl->fsrv.out_file) {
afl->fsrv.use_stdin = 0;
+ default_output = 0;
if (afl->file_extension) {
@@ -2154,7 +2156,7 @@ int main(int argc, char **argv_orig, char **envp) {
afl->fsrv.out_file = NULL;
afl->fsrv.use_stdin = 0;
- if (!afl->unicorn_mode && !afl->fsrv.use_stdin) {
+ if (!afl->unicorn_mode && !afl->fsrv.use_stdin && !default_output) {
WARNF(
"You specified -f or @@ on the command line but the target harness "
@@ -2306,6 +2308,12 @@ int main(int argc, char **argv_orig, char **envp) {
(!afl->queue_cycle && afl->afl_env.afl_import_first)) &&
afl->sync_id)) {
+ if (!afl->queue_cycle && afl->afl_env.afl_import_first) {
+
+ OKF("Syncing queues from other fuzzer instances first ...");
+
+ }
+
sync_fuzzers(afl);
}