summaryrefslogtreecommitdiff
path: root/honggfuzz.h
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2020-04-10 16:49:36 +0200
committerRobert Swiecki <robert@swiecki.net>2020-04-10 16:49:41 +0200
commit2751713e03e9733e01d84c4d31004e79c66e8ca9 (patch)
treead3e921ab0f6fd25d1393c94a355e86c5dfe224f /honggfuzz.h
parent8e76143f884cefd3054e352eccc09d550788dba0 (diff)
downloadhonggfuzz-2751713e03e9733e01d84c4d31004e79c66e8ca9.tar.gz
Implement edge counting for PC-guards as well (in addition to 8-bit-counters)
This is a fairly big change, which enabled edge counting for pc-guard (now, non-default) mode.
Diffstat (limited to 'honggfuzz.h')
-rw-r--r--honggfuzz.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/honggfuzz.h b/honggfuzz.h
index 3e5b9add..fd0b7c5e 100644
--- a/honggfuzz.h
+++ b/honggfuzz.h
@@ -76,6 +76,8 @@
/* Default maximum size of produced inputs */
#define _HF_INPUT_DEFAULT_SIZE (1024ULL * 8)
+/* Per-thread bitmap */
+#define _HF_PERTHREAD_BITMAP_FD 1018
/* FD used to report back used int/str constants from the fuzzed process */
#define _HF_CMP_BITMAP_FD 1019
/* FD used to log inside the child process */
@@ -355,6 +357,7 @@ typedef struct {
runState_t runState;
bool tmOutSignaled;
char* args[_HF_ARGS_MAX + 1];
+ int perThreadCovFeedbackFd;
#if !defined(_HF_ARCH_DARWIN)
timer_t timerId;
#endif // !defined(_HF_ARCH_DARWIN)