mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-24 06:50:08 +03:00
Revert "Improve HTML fuzzer stability"
This reverts commit de1b51eddcc17fd7ed1bbcc6d5d7d529407dfbe2.
This commit is contained in:
parent
0987001c1b
commit
0fb3ae5840
@ -1324,10 +1324,6 @@ htmlCheckAutoClose(const xmlChar * newtag, const xmlChar * oldtag)
|
||||
int i, indx;
|
||||
const char **closed = NULL;
|
||||
|
||||
/*
|
||||
* FIXME: This is not thread-safe and should be called from
|
||||
* xmlInitParser instead.
|
||||
*/
|
||||
if (htmlStartCloseIndexinitialized == 0)
|
||||
htmlInitAutoClose();
|
||||
|
||||
|
@ -6,14 +6,12 @@
|
||||
|
||||
#include <libxml/HTMLparser.h>
|
||||
#include <libxml/HTMLtree.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
#include "fuzz.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerInitialize(int *argc ATTRIBUTE_UNUSED,
|
||||
char ***argv ATTRIBUTE_UNUSED) {
|
||||
xmlInitParser();
|
||||
htmlInitAutoClose();
|
||||
xmlSetGenericErrorFunc(NULL, xmlFuzzErrorFunc);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user