summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Richards <rrichards@cdatazone.org>2011-02-18 17:17:17 (GMT)
committerRob Richards <rrichards@cdatazone.org>2011-02-18 17:17:17 (GMT)
commitc794eb5bb0a6c4f3d213015fa26a11e1e46a3626 (patch)
treef7139bc05c6a967bb62bd0193061ac13ddf19b0d
parentfec31bcd452e77c10579467ca87a785b41115de6 (diff)
downloadlibxml2-c794eb5bb0a6c4f3d213015fa26a11e1e46a3626.tar.gz
libxml2-c794eb5bb0a6c4f3d213015fa26a11e1e46a3626.tar.xz
Fix memory corruption
when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
-rw-r--r--parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index d1c7888..9ab8641 100644
--- a/parser.c
+++ b/parser.c
@@ -6992,6 +6992,7 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
ent->owner = 1;
while (list != NULL) {
list->parent = (xmlNodePtr) ent;
+ xmlSetTreeDoc(list, ent->doc);
if (list->next == NULL)
ent->last = list;
list = list->next;