diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-01-17 17:26:49 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-18 16:24:39 +0000 |
| commit | 86b1c2a7f08e451bffee8408d2eacc700f5773da (patch) | |
| tree | cd2f9903ddaa3d0049f149487389317c9c8cca66 /meta/recipes-support/libxslt | |
| parent | 4211a7497886561e9607f18dd4d81d0d41eaadfa (diff) | |
| download | poky-86b1c2a7f08e451bffee8408d2eacc700f5773da.tar.gz | |
libxslt: update to 1.1.33
(From OE-Core rev: 3917da6e2810c27c4400621a853494c29f9fe5c6)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libxslt')
| -rw-r--r-- | meta/recipes-support/libxslt/libxslt/fix-rvts-handling.patch | 80 | ||||
| -rw-r--r-- | meta/recipes-support/libxslt/libxslt_1.1.33.bb (renamed from meta/recipes-support/libxslt/libxslt_1.1.32.bb) | 8 |
2 files changed, 3 insertions, 85 deletions
diff --git a/meta/recipes-support/libxslt/libxslt/fix-rvts-handling.patch b/meta/recipes-support/libxslt/libxslt/fix-rvts-handling.patch deleted file mode 100644 index ea3ae51e93..0000000000 --- a/meta/recipes-support/libxslt/libxslt/fix-rvts-handling.patch +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | libxslt-1.1.32: Fix handling of RVTs returned from nested EXSLT functions | ||
| 2 | |||
| 3 | [No upstream tracking] -- https://bugzilla.gnome.org/show_bug.cgi?id=792580 | ||
| 4 | |||
| 5 | Set the context variable to NULL when evaluating EXSLT functions. | ||
| 6 | Fixes potential use-after-free errors or memory leaks. | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxslt/commit/8bd32f7753ac253a54279a0b6a88d15a57076bb0] | ||
| 9 | bug: 792580 | ||
| 10 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> | ||
| 11 | |||
| 12 | diff --git a/libexslt/functions.c b/libexslt/functions.c | ||
| 13 | index dc794e3..8511cb0 100644 | ||
| 14 | --- a/libexslt/functions.c | ||
| 15 | +++ b/libexslt/functions.c | ||
| 16 | @@ -280,6 +280,7 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { | ||
| 17 | exsltFuncFunctionData *func; | ||
| 18 | xmlNodePtr paramNode, oldInsert, fake; | ||
| 19 | int oldBase; | ||
| 20 | + void *oldCtxtVar; | ||
| 21 | xsltStackElemPtr params = NULL, param; | ||
| 22 | xsltTransformContextPtr tctxt = xsltXPathGetTransformContext(ctxt); | ||
| 23 | int i, notSet; | ||
| 24 | @@ -418,11 +419,14 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { | ||
| 25 | fake = xmlNewDocNode(tctxt->output, NULL, | ||
| 26 | (const xmlChar *)"fake", NULL); | ||
| 27 | oldInsert = tctxt->insert; | ||
| 28 | + oldCtxtVar = tctxt->contextVariable; | ||
| 29 | tctxt->insert = fake; | ||
| 30 | + tctxt->contextVariable = NULL; | ||
| 31 | xsltApplyOneTemplate (tctxt, tctxt->node, | ||
| 32 | func->content, NULL, NULL); | ||
| 33 | xsltLocalVariablePop(tctxt, tctxt->varsBase, -2); | ||
| 34 | tctxt->insert = oldInsert; | ||
| 35 | + tctxt->contextVariable = oldCtxtVar; | ||
| 36 | tctxt->varsBase = oldBase; /* restore original scope */ | ||
| 37 | if (params != NULL) | ||
| 38 | xsltFreeStackElemList(params); | ||
| 39 | diff --git a/tests/docs/bug-209.xml b/tests/docs/bug-209.xml | ||
| 40 | new file mode 100644 | ||
| 41 | index 0000000..69d62f2 | ||
| 42 | --- /dev/null | ||
| 43 | +++ b/tests/docs/bug-209.xml | ||
| 44 | @@ -0,0 +1 @@ | ||
| 45 | +<doc/> | ||
| 46 | diff --git a/tests/general/bug-209.out b/tests/general/bug-209.out | ||
| 47 | new file mode 100644 | ||
| 48 | index 0000000..e829790 | ||
| 49 | --- /dev/null | ||
| 50 | +++ b/tests/general/bug-209.out | ||
| 51 | @@ -0,0 +1,2 @@ | ||
| 52 | +<?xml version="1.0"?> | ||
| 53 | +<result/> | ||
| 54 | diff --git a/tests/general/bug-209.xsl b/tests/general/bug-209.xsl | ||
| 55 | new file mode 100644 | ||
| 56 | index 0000000..fe69ac6 | ||
| 57 | --- /dev/null | ||
| 58 | +++ b/tests/general/bug-209.xsl | ||
| 59 | @@ -0,0 +1,21 @@ | ||
| 60 | +<xsl:stylesheet | ||
| 61 | + version="1.0" | ||
| 62 | + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| 63 | + xmlns:func="http://exslt.org/functions" | ||
| 64 | + extension-element-prefixes="func"> | ||
| 65 | + | ||
| 66 | + <xsl:template match="/"> | ||
| 67 | + <xsl:variable name="v" select="func:a()" /> | ||
| 68 | + <xsl:copy-of select="$v"/> | ||
| 69 | + </xsl:template> | ||
| 70 | + | ||
| 71 | + <func:function name="func:a"> | ||
| 72 | + <func:result select="func:b()" /> | ||
| 73 | + </func:function> | ||
| 74 | + | ||
| 75 | + <func:function name="func:b"> | ||
| 76 | + <func:result> | ||
| 77 | + <result/> | ||
| 78 | + </func:result> | ||
| 79 | + </func:function> | ||
| 80 | +</xsl:stylesheet> | ||
diff --git a/meta/recipes-support/libxslt/libxslt_1.1.32.bb b/meta/recipes-support/libxslt/libxslt_1.1.33.bb index f0fa5e723f..0e0c10d816 100644 --- a/meta/recipes-support/libxslt/libxslt_1.1.32.bb +++ b/meta/recipes-support/libxslt/libxslt_1.1.33.bb | |||
| @@ -8,12 +8,10 @@ LIC_FILES_CHKSUM = "file://Copyright;md5=0cd9a07afbeb24026c9b03aecfeba458" | |||
| 8 | SECTION = "libs" | 8 | SECTION = "libs" |
| 9 | DEPENDS = "libxml2" | 9 | DEPENDS = "libxml2" |
| 10 | 10 | ||
| 11 | SRC_URI = "http://xmlsoft.org/sources/libxslt-${PV}.tar.gz \ | 11 | SRC_URI = "http://xmlsoft.org/sources/libxslt-${PV}.tar.gz" |
| 12 | file://fix-rvts-handling.patch \ | ||
| 13 | " | ||
| 14 | 12 | ||
| 15 | SRC_URI[md5sum] = "1fc72f98e98bf4443f1651165f3aa146" | 13 | SRC_URI[md5sum] = "b3bd254a03e46d58f8ad1e4559cd2c2f" |
| 16 | SRC_URI[sha256sum] = "526ecd0abaf4a7789041622c3950c0e7f2c4c8835471515fd77eec684a355460" | 14 | SRC_URI[sha256sum] = "8e36605144409df979cab43d835002f63988f3dc94d5d3537c12796db90e38c8" |
| 17 | 15 | ||
| 18 | UPSTREAM_CHECK_REGEX = "libxslt-(?P<pver>\d+(\.\d+)+)\.tar" | 16 | UPSTREAM_CHECK_REGEX = "libxslt-(?P<pver>\d+(\.\d+)+)\.tar" |
| 19 | 17 | ||
