This website requires JavaScript.
Explore
Help
Register
Sign In
c
/
libxml2
Watch
1
Star
0
Fork
0
You've already forked libxml2
mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced
2025-03-28 21:33:13 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
libxml2
/
result
/
HTML
/
758605.html.err
4 lines
88 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Detect change of encoding when parsing HTML names From https://bugzilla.gnome.org/show_bug.cgi?id=758518 Happens when a file has a name getting parsed, but no valid encoding set, so libxml has to guess what the encoding is. This patch detects when the buffer location changes, and if it does, restarts the parsing of the name. This slightly change a couple of regression tests output
2016-05-04 11:23:49 +08:00
./test/HTML/758605.html:1: HTML parser error : htmlParseEntityRef: expecting ';'
Bug 758605: Heap-based buffer overread in xmlDictAddString <https://bugzilla.gnome.org/show_bug.cgi?id=758605> Reviewed by David Kilzer. * HTMLparser.c: (htmlParseName): Add bounds check. (htmlParseNameComplex): Ditto. * result/HTML/758605.html: Added. * result/HTML/758605.html.err: Added. * result/HTML/758605.html.sax: Added. * runtest.c: (pushParseTest): The input for the new test case was so small (4 bytes) that htmlParseChunk() was never called after htmlCreatePushParserCtxt(), thereby creating a false positive test failure. Fixed by using a do-while loop so we always call htmlParseChunk() at least once. * test/HTML/758605.html: Added.
2016-03-01 11:34:04 -08:00
ê
^
Reference in New Issue
Copy Permalink