[libxslt] Fix hang with namespace-alias, fixes #700689
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix hang with namespace-alias, fixes #700689
- Date: Thu, 7 May 2015 21:10:07 +0000 (UTC)
commit d20a5ab03c195870e3d27b14965d1ed6f3ae0aed
Author: Shaun McCance <shaunm gnome org>
Date: Tue May 5 09:14:37 2015 -0400
Fix hang with namespace-alias, fixes #700689
libxslt/namespaces.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libxslt/namespaces.c b/libxslt/namespaces.c
index b3c9972..07a7705 100644
--- a/libxslt/namespaces.c
+++ b/libxslt/namespaces.c
@@ -790,8 +790,10 @@ xsltCopyNamespaceList(xsltTransformContextPtr ctxt, xmlNodePtr node,
/* TODO apply cascading */
URI = (const xmlChar *) xmlHashLookup(ctxt->style->nsAliases,
cur->href);
- if (URI == UNDEFINED_DEFAULT_NS)
+ if (URI == UNDEFINED_DEFAULT_NS) {
+ cur = cur->next;
continue;
+ }
if (URI != NULL) {
q = xmlNewNs(node, URI, cur->prefix);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]