Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/51c2dd70e2bb8da61f683...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/51c2dd70e2bb8da61f68391...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/51c2dd70e2bb8da61f6839161...
The branch, master has been updated
via 51c2dd70e2bb8da61f683916111f083ec0263953 (commit)
from 46945f636221ccf0751f3f0e2e78c6e6d33cab7f (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/netsurf.git/commit/?id=51c2dd70e2bb8da61f6...
commit 51c2dd70e2bb8da61f683916111f083ec0263953
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Add assert before we wander off into the weeds.
Visiting slashdot we get a document write with a node that has no
html content user data.
diff --git a/javascript/duktape/Document.bnd b/javascript/duktape/Document.bnd
index 0b478d5..dce110c 100644
--- a/javascript/duktape/Document.bnd
+++ b/javascript/duktape/Document.bnd
@@ -31,6 +31,7 @@ method Document::write()
err = dom_node_get_user_data(priv->parent.node,
corestring_dom___ns_key_html_content_data,
&htmlc);
+ assert(htmlc != NULL);
if (err == DOM_NO_ERR && htmlc->parser != NULL) {
dom_hubbub_parser_insert_chunk(htmlc->parser, (uint8_t *)text, text_len);
}
-----------------------------------------------------------------------
Summary of changes:
javascript/duktape/Document.bnd | 1 +
1 file changed, 1 insertion(+)
diff --git a/javascript/duktape/Document.bnd b/javascript/duktape/Document.bnd
index 0b478d5..dce110c 100644
--- a/javascript/duktape/Document.bnd
+++ b/javascript/duktape/Document.bnd
@@ -31,6 +31,7 @@ method Document::write()
err = dom_node_get_user_data(priv->parent.node,
corestring_dom___ns_key_html_content_data,
&htmlc);
+ assert(htmlc != NULL);
if (err == DOM_NO_ERR && htmlc->parser != NULL) {
dom_hubbub_parser_insert_chunk(htmlc->parser, (uint8_t *)text, text_len);
}
--
NetSurf Browser