revert out_fd copy
MODIFY
src/afl-forkserver.c
src/afl-forkserver.c
@@ -107,6 +107,7 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
fsrv_to->support_shmem_fuzz = from->support_shmem_fuzz;
fsrv_to->out_file = from->out_file;
fsrv_to->dev_urandom_fd = from->dev_urandom_fd;
+ fsrv_to->out_fd = from->out_fd; // not sure this is a good idea
// These are forkserver specific.
fsrv_to->out_dir_fd = -1;
@@ -114,16 +115,6 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
fsrv_to->use_fauxsrv = 0;
fsrv_to->last_run_timed_out = 0;
- if (fsrv_to->use_stdin) {
-
- fsrv_to->out_fd = 0;
-
- } else {
-
- fsrv_to->out_fd = -1;
-
- }
-
fsrv_to->init_child_func = fsrv_exec_child;
// Note: do not copy ->add_extra_func

revert out_fd copy