[libxml2] Fix memory corruption when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
- From: Rob Richards <rrichard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix memory corruption when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
- Date: Fri, 18 Feb 2011 17:20:59 +0000 (UTC)
commit c794eb5bb0a6c4f3d213015fa26a11e1e46a3626
Author: Rob Richards <rrichards cdatazone org>
Date: Fri Feb 18 12:17:17 2011 -0500
Fix memory corruption
when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
parser.c | 1 +
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]