diff options
-rw-r--r-- | qemu_mode/libcompcov/pmparser.h | 4 | ||||
-rw-r--r-- | src/afl-forkserver.c | 22 |
2 files changed, 11 insertions, 15 deletions
diff --git a/qemu_mode/libcompcov/pmparser.h b/qemu_mode/libcompcov/pmparser.h index d37bfcaf..a0441f33 100644 --- a/qemu_mode/libcompcov/pmparser.h +++ b/qemu_mode/libcompcov/pmparser.h @@ -103,8 +103,8 @@ void pmparser_print(procmaps_struct *map, int order); /** * gobal variables */ -// procmaps_struct* g_last_head=NULL; -// procmaps_struct* g_current=NULL; +// procmaps_struct *g_last_head=NULL; +// procmaps_struct *g_current=NULL; procmaps_iterator *pmparser_parse(int pid) { diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 083f1966..3938ceeb 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -139,21 +139,17 @@ void afl_fsrv_init(afl_forkserver_t *fsrv) { // this structure needs default so we initialize it if this was not done // already - if (!fsrv->use_stdin) { - - fsrv->use_stdin = 1; - fsrv->out_fd = -1; - fsrv->out_dir_fd = -1; - fsrv->dev_null_fd = -1; + fsrv->use_stdin = 1; + fsrv->out_fd = -1; + fsrv->out_dir_fd = -1; + fsrv->dev_null_fd = -1; #ifndef HAVE_ARC4RANDOM - fsrv->dev_urandom_fd = -1; + fsrv->dev_urandom_fd = -1; #endif - fsrv->exec_tmout = EXEC_TIMEOUT; - fsrv->mem_limit = MEM_LIMIT; - fsrv->child_pid = -1; - fsrv->out_dir_fd = -1; - - } + fsrv->exec_tmout = EXEC_TIMEOUT; + fsrv->mem_limit = MEM_LIMIT; + fsrv->child_pid = -1; + fsrv->out_dir_fd = -1; list_append(&fsrv_list, fsrv); |