summaryrefslogtreecommitdiff
path: root/tests/fuzz/fuzz.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-11-14 13:13:40 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-11-14 13:13:40 +0900
commit89b6a9c1a88da19418794620640ea4877bfe2b95 (patch)
tree502c6e173ae8014e647cb7710af111fdaf73bf44 /tests/fuzz/fuzz.h
parenta4f3dbe89311f8270adce767f7d086a40e5f4369 (diff)
parent52575733efa1b63a3f5fa615821c38c54387d409 (diff)
downloadlibxslt-tizen_4.0_base.tar.gz
libxslt-tizen_4.0_base.tar.bz2
libxslt-tizen_4.0_base.zip
Merge branch 'tizen_base' into tizen_4.0_basesubmit/tizen_4.0_base/20191114.041510tizen_4.0_base
Diffstat (limited to 'tests/fuzz/fuzz.h')
-rw-r--r--tests/fuzz/fuzz.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/fuzz/fuzz.h b/tests/fuzz/fuzz.h
new file mode 100644
index 00000000..7dff3dbe
--- /dev/null
+++ b/tests/fuzz/fuzz.h
@@ -0,0 +1,35 @@
+/*
+ * xpath.h: Header for fuzz targets
+ *
+ * See Copyright for the status of this software.
+ */
+
+#ifndef __XML_XSLT_TESTS_FUZZ_H__
+#define __XML_XSLT_TESTS_FUZZ_H__
+
+#include <stddef.h>
+#include <libxml/xmlstring.h>
+#include <libxml/xpath.h>
+
+int
+xsltFuzzXPathInit(int *argc_p, char ***argv_p, const char *dir);
+
+xmlXPathObjectPtr
+xsltFuzzXPath(const char *data, size_t size);
+
+void
+xsltFuzzXPathFreeObject(xmlXPathObjectPtr obj);
+
+void
+xsltFuzzXPathCleanup(void);
+
+int
+xsltFuzzXsltInit(int *argc_p, char ***argv_p, const char *dir);
+
+xmlChar *
+xsltFuzzXslt(const char *data, size_t size);
+
+void
+xsltFuzzXsltCleanup(void);
+
+#endif