mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 08:41:32 +00:00
Set kill signal before using it in afl-showmap (#935)
This commit is contained in:
parent
197c8845ee
commit
bc286035e9
@ -1104,6 +1104,9 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
: 0);
|
: 0);
|
||||||
be_quiet = save_be_quiet;
|
be_quiet = save_be_quiet;
|
||||||
|
|
||||||
|
fsrv->kill_signal =
|
||||||
|
parse_afl_kill_signal_env(getenv("AFL_KILL_SIGNAL"), SIGKILL);
|
||||||
|
|
||||||
if (new_map_size) {
|
if (new_map_size) {
|
||||||
|
|
||||||
// only reinitialize when it makes sense
|
// 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")) {
|
if (getenv("AFL_CRASH_EXITCODE")) {
|
||||||
|
|
||||||
long exitcode = strtol(getenv("AFL_CRASH_EXITCODE"), NULL, 10);
|
long exitcode = strtol(getenv("AFL_CRASH_EXITCODE"), NULL, 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user