diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-12-10 11:44:59 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-12-15 13:10:56 +0000 |
commit | 0a242b5fbfe6b94ca5889748f308fe80a494bb96 (patch) | |
tree | 6de9db15745011afc19dfca2d8765457c4c07ea0 /main/libxslt/CVE-2015-7995.patch | |
parent | b265647eeac594387bedb034415ae1d6bf5b742c (diff) | |
download | aports-0a242b5fbfe6b94ca5889748f308fe80a494bb96.tar.bz2 aports-0a242b5fbfe6b94ca5889748f308fe80a494bb96.tar.xz |
main/libxslt: patch CVE-2015-7995
Diffstat (limited to 'main/libxslt/CVE-2015-7995.patch')
-rw-r--r-- | main/libxslt/CVE-2015-7995.patch | 15 |
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"))) { + |