bug 1067: Assertions and comments about done_dom_node().
commiteb820a57a66fbc0ab53be6379d5ffa37431c7d8c
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 15 Feb 2009 01:10:14 +0000 (15 03:10 +0200)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 15 Feb 2009 01:39:00 +0000 (15 03:39 +0200)
treedabb0de16ecad0ead3009053a7ae497369d760c0
parenta7c2f14e6d0d3753ca0b5fd3e149d6f12492bba5
bug 1067: Assertions and comments about done_dom_node().

In bug 1067, dom_rss_pop_document() freed a node with done_dom_node()
even though call_dom_node_callbacks() was still using that node.  This
made call_dom_node_callbacks() read a function pointer from beyond the
end of an array and call that.  Add assertions to detect out-of-range
node types, and comments to warn about the bug.
src/dom/node.c
src/dom/node.h
src/dom/stack.c
src/dom/stack.h