[Reproducible-commits] [libxslt] 03/04: [PATCH] Fix crash with unexpected DTD nodes in XSLT.
Mattia Rizzolo
mattia at debian.org
Fri May 20 12:49:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag debian/1.1.26-6+squeeze1
in repository libxslt.
commit 9ebc17a3bad5fc6807080e11bcca3f58c8c392fe
Author: Chris Evans <cevans at chromium.org>
Date: Thu Jul 5 11:29:14 2012 +0800
[PATCH] Fix crash with unexpected DTD nodes in XSLT.
A fix for XSLT node checking.
---
libxslt/xsltutils.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libxslt/xsltutils.h b/libxslt/xsltutils.h
index 3886be3..c986a9c 100644
--- a/libxslt/xsltutils.h
+++ b/libxslt/xsltutils.h
@@ -52,8 +52,8 @@ extern "C" {
* Checks that the element pertains to XSLT namespace.
*/
#define IS_XSLT_ELEM(n) \
- (((n) != NULL) && ((n)->ns != NULL) && \
- (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
+ (((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \
+ ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
/**
* IS_XSLT_NAME:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libxslt.git
More information about the Reproducible-commits
mailing list