From 1d7c76d14153d0bcb03b360e9c78f1ca1317d643 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Wed, 24 Jun 2020 17:37:16 +0200 Subject: [PATCH] decrease time to sync for main --- src/afl-fuzz.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 29563f54..5a5a33d2 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -1347,7 +1347,15 @@ int main(int argc, char **argv_orig, char **envp) { if (!skipped_fuzz && !afl->stop_soon && afl->sync_id) { - if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); } + if (unlikely(afl->is_main_node)) { + + if (!(sync_interval_cnt++ % (SYNC_INTERVAL / 2))) { sync_fuzzers(afl); } + + } else { + + if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); } + + } }