1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-07 10:42:55 +03:00
Files
libxslt/tests/fuzz/fuzz.h
Nick Wellnhofer 311da8c886 Reorganize fuzzing code
- Move core fuzzing code into a single file fuzz.c
- Add tests for fuzz targets
- Reduce XSLT operation limit
2019-05-08 12:21:50 +02:00

36 lines
631 B
C

/*
* 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