mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 01:31:37 +00:00
fix missing out_fd for cmplog forkserver
This commit is contained in:
parent
ef1ea07e68
commit
f157bca548
@ -88,6 +88,7 @@ void afl_fsrv_init(afl_forkserver_t *fsrv) {
|
|||||||
void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
|
void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
|
||||||
|
|
||||||
fsrv_to->use_stdin = from->use_stdin;
|
fsrv_to->use_stdin = from->use_stdin;
|
||||||
|
fsrv_to->out_fd = from->out_fd;
|
||||||
fsrv_to->dev_null_fd = from->dev_null_fd;
|
fsrv_to->dev_null_fd = from->dev_null_fd;
|
||||||
fsrv_to->exec_tmout = from->exec_tmout;
|
fsrv_to->exec_tmout = from->exec_tmout;
|
||||||
fsrv_to->mem_limit = from->mem_limit;
|
fsrv_to->mem_limit = from->mem_limit;
|
||||||
@ -98,7 +99,6 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// These are forkserver specific.
|
// These are forkserver specific.
|
||||||
fsrv_to->out_fd = -1;
|
|
||||||
fsrv_to->out_dir_fd = -1;
|
fsrv_to->out_dir_fd = -1;
|
||||||
fsrv_to->child_pid = -1;
|
fsrv_to->child_pid = -1;
|
||||||
fsrv_to->use_fauxsrv = 0;
|
fsrv_to->use_fauxsrv = 0;
|
||||||
|
@ -671,7 +671,7 @@ test -e ../afl-qemu-trace && {
|
|||||||
test -e test-instr -a -e test-compcov && {
|
test -e test-instr -a -e test-compcov && {
|
||||||
{
|
{
|
||||||
mkdir -p in
|
mkdir -p in
|
||||||
echo 0 > in/in
|
echo 00000 > in/in
|
||||||
$ECHO "$GREY[*] running afl-fuzz for qemu_mode, this will take approx 10 seconds"
|
$ECHO "$GREY[*] running afl-fuzz for qemu_mode, this will take approx 10 seconds"
|
||||||
{
|
{
|
||||||
../afl-fuzz -m ${MEM_LIMIT} -V10 -Q -i in -o out -- ./test-instr >>errors 2>&1
|
../afl-fuzz -m ${MEM_LIMIT} -V10 -Q -i in -o out -- ./test-instr >>errors 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user