Implement maximal number of branches for softCnt
diff --git a/common.h b/common.h
index 3cd8c2b..67064f6 100644
--- a/common.h
+++ b/common.h
@@ -138,6 +138,7 @@
uint64_t bbCnt;
uint64_t newBBCnt;
uint64_t softCnt;
+ uint64_t softCntMax;
} hwcnt_t;
/* Sanitizer coverage specific data structures */
@@ -203,10 +204,11 @@
};
/* Maximum number of active fuzzing threads */
-#define _HF_FEEDBACK_THREAD_SZ 1024
+#define _HF_THREAD_MAX 1024U
typedef struct {
uint8_t bbMap[_HF_PERF_BITMAP_SIZE_16M];
- uint32_t pidFeedback[_HF_FEEDBACK_THREAD_SZ];
+ uint32_t pidFeedback[_HF_THREAD_MAX];
+ uint32_t maxFeedback[_HF_THREAD_MAX];
} feedback_t;
typedef struct {