mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-26 21:41:34 +03:00
parser: Pass resource type to resource loader
This commit is contained in:
@@ -404,8 +404,8 @@ xmlFuzzMainEntity(size_t *size) {
|
||||
int
|
||||
xmlFuzzResourceLoader(void *data ATTRIBUTE_UNUSED, const char *URL,
|
||||
const char *ID ATTRIBUTE_UNUSED,
|
||||
int type ATTRIBUTE_UNUSED, int flags ATTRIBUTE_UNUSED,
|
||||
xmlParserInputPtr *out) {
|
||||
xmlResourceType type ATTRIBUTE_UNUSED,
|
||||
int flags ATTRIBUTE_UNUSED, xmlParserInputPtr *out) {
|
||||
xmlParserInputPtr input;
|
||||
xmlFuzzEntityInfo *entity;
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ xmlFuzzMainEntity(size_t *size);
|
||||
|
||||
int
|
||||
xmlFuzzResourceLoader(void *data, const char *URL, const char *ID,
|
||||
int type, int flags, xmlParserInputPtr *out);
|
||||
xmlResourceType type, int flags, xmlParserInputPtr *out);
|
||||
|
||||
xmlParserInputPtr
|
||||
xmlFuzzEntityLoader(const char *URL, const char *ID, xmlParserCtxtPtr ctxt);
|
||||
|
||||
@@ -56,7 +56,7 @@ static struct {
|
||||
static int
|
||||
fuzzResourceRecorder(void *data ATTRIBUTE_UNUSED, const char *URL,
|
||||
const char *ID ATTRIBUTE_UNUSED,
|
||||
int type ATTRIBUTE_UNUSED, int flags,
|
||||
xmlResourceType type ATTRIBUTE_UNUSED, int flags,
|
||||
xmlParserInputPtr *out) {
|
||||
xmlParserInputPtr in;
|
||||
static const int chunkSize = 16384;
|
||||
|
||||
Reference in New Issue
Block a user