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

Another attempt at improving fuzzer stability

xmlInitializeCatalog is not called from xmlInitParser.
This commit is contained in:
Nick Wellnhofer 2021-02-22 17:58:06 +01:00
parent 0fb3ae5840
commit 7a90bdfae6

View File

@ -6,12 +6,14 @@
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
#include <libxml/catalog.h>
#include "fuzz.h"
int
LLVMFuzzerInitialize(int *argc ATTRIBUTE_UNUSED,
char ***argv ATTRIBUTE_UNUSED) {
xmlInitParser();
xmlInitializeCatalog();
xmlSetGenericErrorFunc(NULL, xmlFuzzErrorFunc);
return 0;