1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

html: Don't invoke SAX callbacks if parser was stopped

This commit is contained in:
Nick Wellnhofer 2025-02-22 14:51:39 +01:00
parent 6dfa68ac7f
commit 5ed4eafd8a

View File

@ -2962,6 +2962,9 @@ htmlCharDataSAXCallback(htmlParserCtxtPtr ctxt, const xmlChar *buf,
return;
htmlStartCharData(ctxt);
if (PARSER_STOPPED(ctxt))
return;
}
if ((mode == 0) &&