diff options
author | van Hauser <vh@thc.org> | 2020-06-21 18:07:30 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-21 18:07:30 +0200 |
commit | 5cad92e57ecda270753cf70311a7ac1ff6fdcc9e (patch) | |
tree | ab44c9c6a825a16b51fd3ab60e2402484401aa4e /src/afl-fuzz-run.c | |
parent | f6ef1fe65ecb1414af18f6132c375b127cb8a048 (diff) | |
download | afl++-5cad92e57ecda270753cf70311a7ac1ff6fdcc9e.tar.gz |
fix unicorn mode for CFLAGS
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index a1e8417f..a355ae0f 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -413,7 +413,7 @@ void sync_fuzzers(afl_state_t *afl) { DIR * sd; struct dirent *sd_ent; u32 sync_cnt = 0, synced = 0, entries = 0; - u8 path[PATH_MAX]; + u8 path[PATH_MAX + 256]; sd = opendir(afl->sync_dir); if (!sd) { PFATAL("Unable to open '%s'", afl->sync_dir); } @@ -533,7 +533,7 @@ void sync_fuzzers(afl_state_t *afl) { s32 fd; struct stat st; - sprintf(path, "%s/%s", qd_path, namelist[o]->d_name); + snprintf(path, sizeof (path), "%s/%s", qd_path, namelist[o]->d_name); afl->syncing_case = next_min_accept; next_min_accept++; o--; |