aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxslt/CVE-2015-7995.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libxslt/CVE-2015-7995.patch')
-rw-r--r--main/libxslt/CVE-2015-7995.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/libxslt/CVE-2015-7995.patch b/main/libxslt/CVE-2015-7995.patch
new file mode 100644
index 0000000000..1f679e81e5
--- /dev/null
+++ b/main/libxslt/CVE-2015-7995.patch
@@ -0,0 +1,15 @@
+diff --git a/libxslt/preproc.c b/libxslt/preproc.c
+index 0eb80a0..7f69325 100644
+--- a/libxslt/preproc.c
++++ b/libxslt/preproc.c
+@@ -2249,7 +2249,8 @@ xsltStylePreCompute(xsltStylesheetPtr style, xmlNodePtr inst) {
+ } else if (IS_XSLT_NAME(inst, "attribute")) {
+ xmlNodePtr parent = inst->parent;
+
+- if ((parent == NULL) || (parent->ns == NULL) ||
++ if ((parent == NULL) ||
++ (parent->type != XML_ELEMENT_NODE) || (parent->ns == NULL) ||
+ ((parent->ns != inst->ns) &&
+ (!xmlStrEqual(parent->ns->href, inst->ns->href))) ||
+ (!xmlStrEqual(parent->name, BAD_CAST "attribute-set"))) {
+