After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706952 - HTML push parser in recovery mode handles </script> incorrectly when at chunk border
HTML push parser in recovery mode handles </script> incorrectly when at chunk...
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: htmlparser
2.7.8
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-28 06:15 UTC by Jani Hautamäki
Modified: 2021-07-05 13:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
C source code to reproduce the bug (2.46 KB, text/x-csrc)
2013-08-28 06:15 UTC, Jani Hautamäki
Details

Description Jani Hautamäki 2013-08-28 06:15:36 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
Comment 1 Stefan Behnel 2014-01-29 17:37:06 UTC
probably related to bug 642065
Comment 2 GNOME Infrastructure Team 2021-07-05 13:20:39 UTC
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.