diff options
author | van Hauser <vh@thc.org> | 2020-10-16 09:16:35 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-16 09:16:35 +0200 |
commit | b82e9ad3dbf3068223498445ff5e7f4ea63ce6f7 (patch) | |
tree | d881e39431b186d49a6cd7e45dcba8ab37b15979 | |
parent | fffe53136cae30316db1578b3d7f09fca3b5bc47 (diff) | |
download | afl++-b82e9ad3dbf3068223498445ff5e7f4ea63ce6f7.tar.gz |
next afl-showmap fix attempt
-rw-r--r-- | TODO.md | 4 | ||||
-rw-r--r-- | src/afl-showmap.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/TODO.md b/TODO.md index 0f60f267..6b43d6be 100644 --- a/TODO.md +++ b/TODO.md @@ -7,7 +7,6 @@ - afl-plot to support multiple plot_data - afl_custom_fuzz_splice_optin() - intel-pt tracer - - https://github.com/zyingp/desockmulti ? ## Further down the road @@ -18,9 +17,6 @@ afl-fuzz: llvm_mode: - add __sanitizer_cov_trace_cmp* support -gcc_plugin: - - (wait for submission then decide) - qemu_mode: - non colliding instrumentation - rename qemu specific envs to AFL_QEMU (AFL_ENTRYPOINT, AFL_CODE_START/END, diff --git a/src/afl-showmap.c b/src/afl-showmap.c index 545bfaa9..822e62df 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -742,8 +742,10 @@ int main(int argc, char **argv_orig, char **envp) { case 'f': // only in here to avoid a compiler warning for use_stdin - fsrv->use_stdin = 0; FATAL("Option -f is not supported in afl-showmap"); + // currently not reached: + fsrv->use_stdin = 0; + fsrv->out_file = strdup(optarg); break; @@ -1015,6 +1017,7 @@ int main(int argc, char **argv_orig, char **envp) { alloc_printf("%s/.afl-showmap-temp-%u", use_dir, (u32)getpid()); unlink(stdin_file); atexit(at_exit_handler); + afl->fsrv.out_file = stdin_file; fsrv->out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600); if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } |