diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-extras.c | 2 | ||||
-rw-r--r-- | src/afl-showmap.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c index 4dd1647c..16806934 100644 --- a/src/afl-fuzz-extras.c +++ b/src/afl-fuzz-extras.c @@ -451,7 +451,7 @@ void load_auto(afl_state_t *afl) { u8 *fn = alloc_printf("%s/.state/auto_extras/auto_%06u", afl->in_dir, i); s32 fd, len; - fd = open(fn, O_RDONLY, 0600); + fd = open(fn, O_RDONLY); if (fd < 0) { diff --git a/src/afl-showmap.c b/src/afl-showmap.c index f8a38c36..e4463dc4 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -154,7 +154,8 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) { if (!strncmp(outfile, "/dev/", 5)) { - fd = open(outfile, O_WRONLY, 0600); + fd = open(outfile, O_WRONLY); + if (fd < 0) PFATAL("Unable to open '%s'", fsrv->out_file); } else if (!strcmp(outfile, "-")) { |