about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-04-07 20:05:57 +0100
committerDavid Carlier <devnexen@gmail.com>2020-04-08 04:57:01 +0100
commit91dc7776ecc52ce92b2bc985d0fa86f84bf72586 (patch)
treee6bf264dbedd886126fc6e84a29eb9446e7fac24 /src/afl-showmap.c
parent452acf3a752f3ff360a5eebc526567cd3ba9a407 (diff)
downloadafl++-91dc7776ecc52ce92b2bc985d0fa86f84bf72586.tar.gz
Android build fix proposal.
LTO flag is recognised but however broken on Android (tested with armv7 arch).
Thus giving the choice not to enable it.
In fortify mode, open required O_CREAT or O_TMPFILE when mode is set.
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c3
1 files changed, 2 insertions, 1 deletions
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, "-")) {