about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-27 08:35:21 +0100
committerGitHub <noreply@github.com>2021-01-27 08:35:21 +0100
commit6b721900d5fb0040333780c7b3b6789cd35a0fea (patch)
tree8a12498c7a74ac0586db32e20c9c174768f8f8ff /src
parentf5127c0e2bc1f1e4df7d5e23298c533eea4c33f0 (diff)
parentd046b28f2fb5981ce4a28ddcfac6ec3405624450 (diff)
downloadafl++-6b721900d5fb0040333780c7b3b6789cd35a0fea.tar.gz
Merge pull request #707 from ampanasiuk/bug-703-wrong-src-attribute-in-sync-stage-filenames
Bug 703 wrong src attribute in sync stage filenames
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 17c305ed..97cb7415 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -627,9 +627,8 @@ void sync_fuzzers(afl_state_t *afl) {
     }
 
     if (m >= n) { goto close_sync; }  // nothing new
-    o = n - 1;
 
-    while (o >= m) {
+    for (o = m; o < n; o++) {
 
       s32         fd;
       struct stat st;
@@ -637,7 +636,6 @@ void sync_fuzzers(afl_state_t *afl) {
       snprintf(path, sizeof(path), "%s/%s", qd_path, namelist[o]->d_name);
       afl->syncing_case = next_min_accept;
       next_min_accept++;
-      o--;
 
       /* Allow this to fail in case the other fuzzer is resuming or so... */