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:
parent
cbd9c6c5af
commit
791a1e80b9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user