Skip to content
Browse files

Fix memory corruption

when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
  • Loading branch information...
1 parent fec31bc commit c794eb5bb0a6c4f3d213015fa26a11e1e46a3626 @robrichards robrichards committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 parser.c
View
1 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;

0 comments on commit c794eb5

Please sign in to comment.
Something went wrong with that request. Please try again.