From 15ba6249fc9699aa99ad1d1fdc10296c6991d29b Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Sun, 15 Mar 2020 17:02:48 +0100 Subject: fauxserver --- include/afl-fuzz.h | 2 +- include/forkserver.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 8a65920d..895ca34e 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -101,7 +101,7 @@ #include #endif -#undef LIST_FOREACH /* clashes with FreeBSD */ +#undef LIST_FOREACH /* clashes with FreeBSD */ #include "list.h" #ifndef SIMPLE_FILES #define CASE_PREFIX "id:" diff --git a/include/forkserver.h b/include/forkserver.h index 5cd3805b..9802b216 100644 --- a/include/forkserver.h +++ b/include/forkserver.h @@ -42,7 +42,7 @@ typedef struct afl_forkserver { child_pid, /* PID of the fuzzed program */ out_dir_fd; /* FD of the lock file */ - s32 out_fd, /* Persistent fd for afl->fsrv.out_file */ + s32 out_fd, /* Persistent fd for fsrv->out_file */ #ifndef HAVE_ARC4RANDOM dev_urandom_fd, /* Persistent fd for /dev/urandom */ #endif @@ -60,6 +60,8 @@ typedef struct afl_forkserver { u8 child_timed_out; /* Traced process timed out? */ + u8 use_fauxsrv; /* Fauxsrv for non-forking targets? */ + } afl_forkserver_t; void handle_timeout(int sig); -- cgit 1.4.1