1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-31 06:50:06 +03:00

fuzz: Set filename in xmlFuzzEntityLoader

This commit is contained in:
Nick Wellnhofer 2023-02-28 19:14:57 +01:00
parent cbd9c6c5af
commit 791a1e80b9

View File

@ -274,7 +274,7 @@ xmlFuzzEntityLoader(const char *URL, const char *ID ATTRIBUTE_UNUSED,
return(NULL);
input = xmlNewInputStream(ctxt);
input->filename = NULL;
input->filename = (char *) xmlCharStrdup(URL);
input->buf = xmlParserInputBufferCreateMem(entity->data, entity->size,
XML_CHAR_ENCODING_NONE);
if (input->buf == NULL) {