From d9b72839b30d7a51791a1609444f69bcd3254a6c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 27 Mar 2003 14:24:00 +0000 Subject: [PATCH] should fix #109327 errors on memory accesses Daniel * xinclude.c: should fix #109327 errors on memory accesses Daniel --- ChangeLog | 4 ++++ xinclude.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3f37ee55..3bfa26c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Mar 27 15:22:41 CET 2003 Daniel Veillard + + * xinclude.c: should fix #109327 errors on memory accesses + Thu Mar 27 15:06:13 CET 2003 Daniel Veillard * HTMLtree.c: Fixed reopening of #78662
diff --git a/xinclude.c b/xinclude.c index 12c6f2df..9ba6c403 100644 --- a/xinclude.c +++ b/xinclude.c @@ -538,6 +538,11 @@ xmlXIncludeRecurseDoc(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, newctxt->incTab[i]->count--; newctxt->incTab[i] = NULL; } + + /* urlTab may have been reallocated */ + ctxt->urlTab = newctxt->urlTab; + ctxt->urlMax = newctxt->urlMax; + newctxt->urlMax = 0; newctxt->urlNr = 0; newctxt->urlTab = NULL;