From bdd98c131b27be855a9c33cf73d23f4e4b09ae20 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 29 Mar 2006 10:17:37 +0000 Subject: [PATCH] Charles Hardin pointed an OOM condition where a NULL pointer could be * libxslt/transform.c: Charles Hardin pointed an OOM condition where a NULL pointer could be dereferenced, closes #336394 Daniel --- ChangeLog | 5 +++++ libxslt/transform.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2b090d6..37386e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 29 12:16:41 CEST 2006 Daniel Veillard + + * libxslt/transform.c: Charles Hardin pointed an OOM condition where + a NULL pointer could be dereferenced, closes #336394 + Fri Mar 10 12:49:18 CET 2006 Daniel Veillard * libexslt/crypto.c libexslt/date.c libexslt/saxon.c diff --git a/libxslt/transform.c b/libxslt/transform.c index caf41bc..423e2a7 100644 --- a/libxslt/transform.c +++ b/libxslt/transform.c @@ -638,7 +638,8 @@ xsltCopyTextString(xsltTransformContextPtr ctxt, xmlNodePtr target, return(xsltAddTextString(ctxt, target->last, string, len)); } copy = xmlNewTextLen(string, len); - copy->name = xmlStringTextNoenc; + if (copy != NULL) + copy->name = xmlStringTextNoenc; } else { if ((target != NULL) && (target->last != NULL) && (target->last->type == XML_TEXT_NODE) && -- 2.7.4