[libxml2] Revert "Improve HTML fuzzer stability"



commit 0fb3ae584085ce56bedbe2c5e7359f1ed9da238e
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Feb 22 17:31:05 2021 +0100

    Revert "Improve HTML fuzzer stability"
    
    This reverts commit de1b51eddcc17fd7ed1bbcc6d5d7d529407dfbe2.

 HTMLparser.c | 4 ----
 fuzz/html.c  | 2 --
 2 files changed, 6 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index a795757c..c9a64c78 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -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();
 
diff --git a/fuzz/html.c b/fuzz/html.c
index 313b6c5b..449a9d49 100644
--- a/fuzz/html.c
+++ b/fuzz/html.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]