mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
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:
committed by
van Hauser
parent
e5d0a9ecdf
commit
bd9676aa04
@ -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, "-")) {
|
||||
|
Reference in New Issue
Block a user