diff options
| author | van Hauser <vh@thc.org> | 2022-04-03 09:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 09:30:23 +0200 |
| commit | 881aef21fd6ca3f3bcf0847587d4d6d86f3a69db (patch) | |
| tree | d076384dedf423a4bb7c3d1507cb07281ebc2865 /src/afl-forkserver.c | |
| parent | 1d4f1e48797c064ee71441ba555b29fc3f467983 (diff) | |
| parent | c4363dd8b3d19a3e4bab8bc1fca1708ae2ff7899 (diff) | |
| download | afl++-881aef21fd6ca3f3bcf0847587d4d6d86f3a69db.tar.gz | |
Merge pull request #1362 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-forkserver.c')
| -rw-r--r-- | src/afl-forkserver.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 8997781d..628ff590 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,13 @@ 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 } |
