Hello,
libxml2 2.6.26
It seems that there is a bug in the xmlschemas.c file. The
function
xmlSchemaClearValidCtxt clears a xmlSchemaValidCtxt object
without
setting the nbIdcNodes member to 0. When the context is used
a second
time, some IDC nodes are cleared twice.
Attached is a proposed patch.
Regards,
Bertrand.
*** ./libxml2-2.6.26/xmlschemas.c 2006-05-31
15:12:45.000000000 +0200
--- ./libxml2-2.6.26/xmlschemas-patch.c 2006-08-07
12:10:39.000000000 +0200
***************
*** 27171,27176 ****
--- 27171,27178 ----
}
xmlFree(vctxt->idcNodes);
vctxt->idcNodes = NULL;
+ vctxt->nbIdcNodes = 0;
+
}
/*
* Note that we won't delete the XPath state pool
here.
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
|