summaryrefslogtreecommitdiff
path: root/honggfuzz.h
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2020-01-20 00:50:54 +0100
committerRobert Swiecki <robert@swiecki.net>2020-01-20 00:50:54 +0100
commit9d11e5aeb7e654db9c9c877980fcb4497bd81c3c (patch)
tree001ba23f6da88814e68a82784d6299993c41f1f0 /honggfuzz.h
parent36ddc3bbc4402a7a1a680986cb40e963f4aa1311 (diff)
downloadhonggfuzz-9d11e5aeb7e654db9c9c877980fcb4497bd81c3c.tar.gz
subproc: move argument generation to subproc.c
Diffstat (limited to 'honggfuzz.h')
-rw-r--r--honggfuzz.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/honggfuzz.h b/honggfuzz.h
index c8f90594..5266d7c1 100644
--- a/honggfuzz.h
+++ b/honggfuzz.h
@@ -82,6 +82,12 @@
/* FD used to pass data to a persistent process */
#define _HF_PERSISTENT_FD 1023
+/* Input file as a string */
+#define _HF_INPUT_FILE_PATH "/dev/fd/" HF_XSTR(_HF_INPUT_FD)
+
+/* Maximum number of supported execve() args */
+#define _HF_ARGS_MAX 512
+
/* Message indicating that the fuzzed process is ready for new data */
static const uint8_t HFReadyTag = 'R';
@@ -339,6 +345,7 @@ typedef struct {
bool waitingForReady;
runState_t runState;
bool tmOutSignaled;
+ char* args[_HF_ARGS_MAX + 1];
#if !defined(_HF_ARCH_DARWIN)
timer_t timerId;
#endif // !defined(_HF_ARCH_DARWIN)