diff options
author | buherator <buherator@silentsignal.hu> | 2021-05-23 18:26:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 18:26:15 +0200 |
commit | bc286035e94e43e1e7db1b2a8099210f0e71b88b (patch) | |
tree | 5ae24e1f765e0c0ebc2b9cfe2cb75260b65a5052 /src | |
parent | 197c8845ee66ae2a0369281018772bec6ea332d1 (diff) | |
download | afl++-bc286035e94e43e1e7db1b2a8099210f0e71b88b.tar.gz |
Set kill signal before using it in afl-showmap (#935)
Diffstat (limited to 'src')
-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 9bf84956..d7af668c 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -1104,6 +1104,9 @@ int main(int argc, char **argv_orig, char **envp) { : 0); be_quiet = save_be_quiet; + fsrv->kill_signal = + parse_afl_kill_signal_env(getenv("AFL_KILL_SIGNAL"), SIGKILL); + if (new_map_size) { // only reinitialize when it makes sense @@ -1211,9 +1214,6 @@ int main(int argc, char **argv_orig, char **envp) { } - fsrv->kill_signal = - parse_afl_kill_signal_env(getenv("AFL_KILL_SIGNAL"), SIGKILL); - if (getenv("AFL_CRASH_EXITCODE")) { long exitcode = strtol(getenv("AFL_CRASH_EXITCODE"), NULL, 10); |