summaryrefslogtreecommitdiffstats
path: root/test/fuzz/fuzz_htp.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzz/fuzz_htp.h')
-rw-r--r--test/fuzz/fuzz_htp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/fuzz/fuzz_htp.h b/test/fuzz/fuzz_htp.h
new file mode 100644
index 0000000..57ce613
--- /dev/null
+++ b/test/fuzz/fuzz_htp.h
@@ -0,0 +1,26 @@
+/**
+ * @file
+ * @author Philippe Antoine <contact@catenacyber.fr>
+ * fuzz harness for libhtp
+ */
+
+#ifndef __FUZZ_HTP_H__
+#define __FUZZ_HTP_H__
+
+#include <errno.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <string.h>
+#include <stdio.h>
+
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include "htp/htp.h"
+#include "test/test.h"
+
+void fuzz_openFile(const char * name);
+int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
+
+#endif /* __FUZZ_HTP_H__ */
+