Gitweb links:
...log
http://git.netsurf-browser.org/libdom.git/shortlog/2863a608fdf5ce606388e1f36f0e395a17932fed
...commit
http://git.netsurf-browser.org/libdom.git/commit/2863a608fdf5ce606388e1f36f0e395a17932fed
...tree
http://git.netsurf-browser.org/libdom.git/tree/2863a608fdf5ce606388e1f36f0e395a17932fed
The branch, master has been updated
via 2863a608fdf5ce606388e1f36f0e395a17932fed (commit)
from b9b81b9b8a34f5b3a9069c111c4d7530d73a04ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libdom.git/commit/?id=2863a608fdf5ce606388e1f36f0e395a17932fed
commit 2863a608fdf5ce606388e1f36f0e395a17932fed
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
fix expat parser adding comment if no node is being constructed
diff --git a/bindings/xml/expat_xmlparser.c b/bindings/xml/expat_xmlparser.c
index 4bdd5c9..278073c 100644
--- a/bindings/xml/expat_xmlparser.c
+++ b/bindings/xml/expat_xmlparser.c
@@ -359,6 +359,11 @@ expat_xmlparser_comment_handler(void *_parser,
dom_string *data;
dom_exception err;
+ if (parser->current == NULL) {
+ /* not currently building a node so cannot have comment */
+ return;
+ }
+
/* Create DOM string data for comment */
err = dom_string_create((const uint8_t *)_comment,
strlen((const char *) _comment), &data);
-----------------------------------------------------------------------
Summary of changes:
bindings/xml/expat_xmlparser.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bindings/xml/expat_xmlparser.c b/bindings/xml/expat_xmlparser.c
index 4bdd5c9..278073c 100644
--- a/bindings/xml/expat_xmlparser.c
+++ b/bindings/xml/expat_xmlparser.c
@@ -359,6 +359,11 @@ expat_xmlparser_comment_handler(void *_parser,
dom_string *data;
dom_exception err;
+ if (parser->current == NULL) {
+ /* not currently building a node so cannot have comment */
+ return;
+ }
+
/* Create DOM string data for comment */
err = dom_string_create((const uint8_t *)_comment,
strlen((const char *) _comment), &data);
--
Document Object Model library
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org