GNOME Bugzilla – Bug 706952
HTML push parser in recovery mode handles </script> incorrectly when at chunk border
Last modified: 2021-07-05 13:20:39 UTC
Created attachment 253340 [details] C source code to reproduce the bug HTML push parser in recovery mode misses ending </script> tags when they occur at the ending tag occurs at chunk border. Found while debugging randomly occurring strange behavior of apache2's mod_proxy_html. See the attached source code. Suspected problem: at the line 2854 in HTMLparser.c begins the following piece of code: if (ctxt->recovery) { if (xmlStrncasecmp(ctxt->name, ctxt->input->cur+2, xmlStrlen(ctxt->name)) == 0) which cannot match the ending tag to ctxt->name, because the ending tag isn't complete in the pushed chunk. BR, Jani
probably related to bug 642065
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.