mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
fix warning
This commit is contained in:
1
TODO.md
1
TODO.md
@ -9,6 +9,7 @@
|
|||||||
- afl-plot to support multiple plot_data
|
- afl-plot to support multiple plot_data
|
||||||
- parallel builds for source-only targets
|
- parallel builds for source-only targets
|
||||||
- get rid of check_binary, replace with more forkserver communication
|
- get rid of check_binary, replace with more forkserver communication
|
||||||
|
- first fuzzer should be a main automatically
|
||||||
|
|
||||||
## Maybe
|
## Maybe
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
s32 opt, auto_sync = 0 /*, user_set_cache = 0*/;
|
s32 opt, auto_sync = 0 /*, user_set_cache = 0*/;
|
||||||
u64 prev_queued = 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();
|
map_size = get_map_size();
|
||||||
u8 *extras_dir[4];
|
u8 *extras_dir[4];
|
||||||
u8 mem_limit_given = 0, exit_1 = 0, debug = 0,
|
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.out_file = ck_strdup(optarg);
|
||||||
afl->fsrv.use_stdin = 0;
|
afl->fsrv.use_stdin = 0;
|
||||||
|
default_output = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'x': /* dictionary */
|
case 'x': /* dictionary */
|
||||||
@ -1911,6 +1912,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
if (aa_loc && !afl->fsrv.out_file) {
|
if (aa_loc && !afl->fsrv.out_file) {
|
||||||
|
|
||||||
afl->fsrv.use_stdin = 0;
|
afl->fsrv.use_stdin = 0;
|
||||||
|
default_output = 0;
|
||||||
|
|
||||||
if (afl->file_extension) {
|
if (afl->file_extension) {
|
||||||
|
|
||||||
@ -2154,7 +2156,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
afl->fsrv.out_file = NULL;
|
afl->fsrv.out_file = NULL;
|
||||||
afl->fsrv.use_stdin = 0;
|
afl->fsrv.use_stdin = 0;
|
||||||
if (!afl->unicorn_mode && !afl->fsrv.use_stdin) {
|
if (!afl->unicorn_mode && !afl->fsrv.use_stdin && !default_output) {
|
||||||
|
|
||||||
WARNF(
|
WARNF(
|
||||||
"You specified -f or @@ on the command line but the target harness "
|
"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->queue_cycle && afl->afl_env.afl_import_first)) &&
|
||||||
afl->sync_id)) {
|
afl->sync_id)) {
|
||||||
|
|
||||||
|
if (!afl->queue_cycle && afl->afl_env.afl_import_first) {
|
||||||
|
|
||||||
|
OKF("Syncing queues from other fuzzer instances first ...");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
sync_fuzzers(afl);
|
sync_fuzzers(afl);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user