+Thu Dec 23 16:04:47 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c, libxslt/templates.c: fixed a couple of
+ spots where out-of-memory errors were not detected in time
+ (bug #153660 on OSF/1)
+
Thu Dec 2 21:10:31 HKT 2004 William Brack <wbrack@mmm.com.hk>
*doc/xslt.html, doc/downloads.html: changed the download link
const xmlChar *value;
xmlNsPtr ns;
xmlAttrPtr ret;
- if ((ctxt == NULL) || (cur == NULL))
+ if ((ctxt == NULL) || (cur == NULL) || (target == NULL))
return(NULL);
if (cur->type != XML_ATTRIBUTE_NODE)
return(xsltAddTextString(ctxt, target->last, cur->content, len));
}
copy = xmlNewTextLen(cur->content, len);
+ if (copy == NULL)
+ return NULL;
if (cur->name == xmlStringTextNoenc)
copy->name = xmlStringTextNoenc;
ctxt->lasttext = copy->content;
cur->content));
}
#endif
- xsltCopyText(ctxt, insert, cur);
+ if (xsltCopyText(ctxt, insert, cur) == NULL)
+ goto error;
} else if ((cur->type == XML_ELEMENT_NODE) &&
(cur->ns != NULL) && (cur->psvi != NULL)) {
xsltTransformFunction function;
"xsltApplyOneTemplate: copy node %s\n",
cur->name));
#endif
- copy = xsltCopyNode(ctxt, cur, insert);
+ if ((copy = xsltCopyNode(ctxt, cur, insert)) == NULL)
+ goto error;
/*
* all the attributes are directly inherited
*/
*
* extra version information, used to show a CVS compilation
*/
-#define LIBXML_VERSION_EXTRA "-CVS970"
+#define LIBXML_VERSION_EXTRA "-CVS975"
/**
* WITH_XSLT_DEBUG: