diff options
author | Dominik Maier <domenukk@gmail.com> | 2021-02-15 14:07:10 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2021-02-15 14:07:10 +0100 |
commit | c5017945f7f3e352d5b29889c6cc7d31d7206fd9 (patch) | |
tree | 08a6473db09532cb109143e16d1fc9b9a0cf6ed8 /src/afl-showmap.c | |
parent | 5c4c49d9caa967f4dc939ea1ce3d92bc5d1276bc (diff) | |
parent | e3a5c31307f323452dc4b5288e0d19a02b596a33 (diff) | |
download | afl++-c5017945f7f3e352d5b29889c6cc7d31d7206fd9.tar.gz |
merged
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r-- | src/afl-showmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c index c424cdf3..b40527d3 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -1013,7 +1013,6 @@ int main(int argc, char **argv_orig, char **envp) { if (in_dir) { - if (at_file) { PFATAL("Options -A and -i are mutually exclusive"); } detect_file_args(argv + optind, "", &fsrv->use_stdin); } else { @@ -1169,8 +1168,9 @@ int main(int argc, char **argv_orig, char **envp) { } - stdin_file = - alloc_printf("%s/.afl-showmap-temp-%u", use_dir, (u32)getpid()); + stdin_file = at_file ? strdup(at_file) + : (char *)alloc_printf("%s/.afl-showmap-temp-%u", + use_dir, (u32)getpid()); unlink(stdin_file); atexit(at_exit_handler); fsrv->out_file = stdin_file; |