1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

fuzz: Add xmllint fuzzer

This commit is contained in:
Nick Wellnhofer
2024-05-13 12:18:08 +02:00
parent 16fb1028a2
commit b3cb41be8b
14 changed files with 379 additions and 48 deletions

View File

@@ -21,7 +21,7 @@ LLVMFuzzerInitialize(int *argc ATTRIBUTE_UNUSED,
xmlCatalogSetDefaults(XML_CATA_ALLOW_NONE);
#endif
xmlSetGenericErrorFunc(NULL, xmlFuzzErrorFunc);
xmlSetExternalEntityLoader(xmlFuzzEntityLoader);
xmlParserInputBufferCreateFilenameDefault(xmlFuzzEntityLoader);
return 0;
}