aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-15 17:02:48 +0100
committerDominik Maier <domenukk@gmail.com>2020-03-15 17:02:48 +0100
commit15ba6249fc9699aa99ad1d1fdc10296c6991d29b (patch)
tree59121bc7978349aef7bba2095994673e8ddbe878 /include
parentf3799f94bf86ae260cb2a8cbfa747a607c273ce9 (diff)
downloadafl++-15ba6249fc9699aa99ad1d1fdc10296c6991d29b.tar.gz
fauxserver
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h2
-rw-r--r--include/forkserver.h4
2 files changed, 4 insertions, 2 deletions
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 <TargetConditionals.h>
#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);