1From 80bd34c3c650bd68e3c9c3e2308ac1988067ad50 Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Mon, 22 Aug 2022 14:06:37 +0200 4Subject: [PATCH] Don't initialize SAX handler in htmlReadMemory 5 6The SAX handler is already initialized when creating the parser 7context. 8Reference:https://github.com/GNOME/libxml2/commit/80bd34c3c650bd68e3c9c3e2308ac1988067ad50 9Conflict:NA 10--- 11 HTMLparser.c | 3 --- 12 1 file changed, 3 deletions(-) 13 14diff --git a/HTMLparser.c b/HTMLparser.c 15index c6b2183..e95d86b 100644 16--- a/HTMLparser.c 17+++ b/HTMLparser.c 18@@ -6980,9 +6980,6 @@ htmlReadMemory(const char *buffer, int size, const char *URL, const char *encodi 19 ctxt = htmlCreateMemoryParserCtxt(buffer, size); 20 if (ctxt == NULL) 21 return (NULL); 22- htmlDefaultSAXHandlerInit(); 23- if (ctxt->sax != NULL) 24- memcpy(ctxt->sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1)); 25 return (htmlDoRead(ctxt, URL, encoding, options, 0)); 26 } 27 28-- 292.27.0 30 31