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.
This commit is contained in:
David Carlier
2020-04-07 20:05:57 +01:00
committed by van Hauser
parent e5d0a9ecdf
commit bd9676aa04
3 changed files with 5 additions and 2 deletions

View File

@ -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, "-")) {