mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
fuzz: Move back to xmlSetExternalEntityLoader
xmlParserInputBufferCreateFilenameDefault can't report malloc failures.
This commit is contained in:
@@ -198,7 +198,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
|
||||
pushArg(NULL);
|
||||
|
||||
xmlSetGenericErrorFunc(NULL, xmlFuzzErrorFunc);
|
||||
xmlParserInputBufferCreateFilenameDefault(xmlFuzzEntityLoader);
|
||||
xmlSetExternalEntityLoader(xmlFuzzEntityLoader);
|
||||
#ifdef LIBXML_CATALOG_ENABLED
|
||||
xmlCatalogSetDefaults(XML_CATA_ALLOW_NONE);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user