diff options
author | van Hauser <vh@thc.org> | 2022-03-04 09:37:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 09:37:21 +0100 |
commit | 09123d861731a47cc6474763a0eb5ddd4cc09b6d (patch) | |
tree | 5f87fb9784307b84a2bcfa721d58aeaa6f038bfa /src/afl-forkserver.c | |
parent | 7e67545b9de14ae6e425d184581bec93ccf84c6a (diff) | |
parent | 713b069f40094482fb41ef17b44150162c062249 (diff) | |
download | afl++-09123d861731a47cc6474763a0eb5ddd4cc09b6d.tar.gz |
Merge pull request #1344 from schumilo/dev
support Nyx crash logs
Diffstat (limited to 'src/afl-forkserver.c')
-rw-r--r-- | src/afl-forkserver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 8997781d..54f28852 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -450,6 +450,9 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv, fsrv->nyx_handlers->nyx_option_set_timeout(fsrv->nyx_runner, 2, 0); fsrv->nyx_handlers->nyx_option_apply(fsrv->nyx_runner); + fsrv->nyx_aux_string = malloc(0x1000); + memset(fsrv->nyx_aux_string, 0, 0x1000); + /* dry run */ fsrv->nyx_handlers->nyx_set_afl_input(fsrv->nyx_runner, "INIT", 4); switch (fsrv->nyx_handlers->nyx_exec(fsrv->nyx_runner)) { @@ -1253,7 +1256,10 @@ void afl_fsrv_kill(afl_forkserver_t *fsrv) { fsrv->child_pid = -1; #ifdef __linux__ - if (fsrv->nyx_mode) { fsrv->nyx_handlers->nyx_shutdown(fsrv->nyx_runner); } + if (fsrv->nyx_mode) { + free(fsrv->nyx_aux_string); + fsrv->nyx_handlers->nyx_shutdown(fsrv->nyx_runner); + } #endif } |