pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libxslt Updated libxslt to 1.1.30.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae1d3c75fa9e
branches:  trunk
changeset: 368118:ae1d3c75fa9e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 10 20:56:24 2017 +0000

description:
Updated libxslt to 1.1.30.

.1.30: Sep 04 2017
? Documentation:
  Misc doc fixes (Nick Wellnhofer)
? Portability:
  Look for libxml2 via pkg-config first (Elliott
  Sales de Andrade),
  Change default SOPREFIX on Windows to "bin" (Nick
  Wellnhofer),
  Add WIN32_EXTRA_LDFLAGS to tests/plugins/
  Makefile.am (Michael Haubenwallner)
? Bug Fixes:
  Also fix memory hazards in exsltFuncResultElem
  (Nick Wellnhofer),
  Fix NULL deref in xsltDefaultSortFunction (Nick
  Wellnhofer),
  Fix memory hazards in exsltFuncFunctionFunction
  (Nick Wellnhofer),
  Fix memory leaks in EXSLT error paths (Nick
  Wellnhofer),
  Fix memory leak in str:concat with empty node-set
  (Nick Wellnhofer),
  Fix memory leaks in error paths (Nick
  Wellnhofer),
  Switch to xmlUTF8Strsize in numbers.c (Nick
  Wellnhofer),
  Fix NULL pointer deref in
  xsltFormatNumberFunction (Nick Wellnhofer),
  Fix UTF-8 check in str:padding (Nick Wellnhofer),
  Fix xmlStrPrintf argument (Nick Wellnhofer),
  Check for overflow in _exsltDateParseGYear (Nick
  Wellnhofer),
  Fix double to int conversion (Nick Wellnhofer),
  Check for overflow in exsltDateParseDuration
  (Nick Wellnhofer),
  Change version of xsltMaxVars back to 1.0.24
  (Nick Wellnhofer),
  Disable xsltCopyTextString optimization for
  extensions (Nick Wellnhofer),
  Create DOCTYPE for HTML version 5 (Nick
  Wellnhofer),
  Make xsl:decimal-format work with namespaces
  (Nick Wellnhofer),
  Remove norm:localTime extension function (Nick
  Wellnhofer),
  Check for integer overflow in xsltAddTextString
  (Nick Wellnhofer),
  Detect infinite recursion when evaluating
  function arguments (Nick Wellnhofer),
  Fix memory leak in xsltElementAvailableFunction
  (Nick Wellnhofer),
  Fix for pattern predicates calling functions
  (Nick Wellnhofer),
  Fix cmd.exe invocations in Makefile.mingw (Nick
  Wellnhofer),
  Don't try to install index.sgml (Nick
  Wellnhofer),
  Fix symbols.xml (Nick Wellnhofer),
  Fix heap overread in xsltFormatNumberConversion
  (Nick Wellnhofer),
  Fix <xsl:number level="any"/> for non-element
  nodes (Nick Wellnhofer),
  Fix unreachable code in xsltAddChild
  (mahendra.n),
  Change version number in xsl:version warning
  (Nick Wellnhofer),
  Avoid infinite recursion after failed param
  evaluation (Nick Wellnhofer),
  Stop if potential recursion is detected (Nick
  Wellnhofer),
  Consider built-in templates in apply-imports
  (Nick Wellnhofer),
  Fix precedence with multiple attribute sets (Nick
  Wellnhofer),
  Rework attribute set resolution (Nick Wellnhofer)
? Improvements:
  Add .travis.yml (Nick Wellnhofer),
  Silence tests a little (Nick Wellnhofer),
  Set LIBXML_SRC to absolute path (Nick
  Wellnhofer),
  Add missing #include (Nick Wellnhofer),
  Adjust expected error messages in tests (Nick
  Wellnhofer),
  Make xsltDebug more quiet (Nick Wellnhofer),
  New-line terminate error message that missed this
  convention (Jan Pokorn?),
  Use xmlBuffers in EXSLT string functions (Nick
  Wellnhofer),
  Switch to xmlUTF8Strsize in EXSLT string
  functions (Nick Wellnhofer),
  Check for return value of xmlUTF8Strlen (Nick
  Wellnhofer),
  Avoid double/long round trip in FORMAT_ITEM (Nick
  Wellnhofer),
  Separate date and duration structs (Nick
  Wellnhofer),
  Check for overflow in _exsltDateDifference (Nick
  Wellnhofer),
  Clamp seconds field of durations (Nick
  Wellnhofer),
  Change _exsltDateAddDurCalc parameter types (Nick
  Wellnhofer),
  Fix date:difference with time zones (Nick
  Wellnhofer),
  Rework division/remainder arithmetic in date.c
  (Nick Wellnhofer),
  Remove exsltDateCastDateToNumber (Nick
  Wellnhofer),
  Change internal representation of years (Nick
  Wellnhofer),
  Optimize IS_LEAP (Nick Wellnhofer),
  Link libraries with libm (Jussi Kukkonen),
  Rename xsltCopyTreeInternal to xsltCopyTree (Nick
  Wellnhofer),
  Update linker version script (Nick Wellnhofer),
  Add local wildcard to version script (Nick
  Wellnhofer),
  Make some symbols static (Nick Wellnhofer),
  Remove redundant NULL check in xsltNumberComp
  (mahendra.n),
  Fix forwards compatibility for imported
  stylesheets (Nick Wellnhofer),
  Reduce warnings in forwards-compatible mode (Nick
  Wellnhofer),
  Precompute XSLT elements after preprocessing
  (Nick Wellnhofer),
  Fix whitespace in xsltParseStylesheetTop (Nick
  Wellnhofer),
  Consolidate recursion checks (Nick Wellnhofer),
  Treat XSLT_STATE_STOPPED same as errors (Nick
  Wellnhofer),
  Make sure that XSLT_STATE_STOPPED isn't
  overwritten (Nick Wellnhofer),
  Add comment regarding built-in templates and
  params (Nick Wellnhofer),
  Rewrite memory management of local RVTs (Nick
  Wellnhofer),
  Validate QNames of attribute sets (Nick
  Wellnhofer),
  Add xsl:attribute-set regression tests (Nick
  Wellnhofer),
  Ignore imported stylesheets in
  xsltApplyAttributeSet (Nick Wellnhofer)

diffstat:

 textproc/libxslt/Makefile                    |   3 +-
 textproc/libxslt/Makefile.common             |   4 +-
 textproc/libxslt/distinfo                    |  13 ++--
 textproc/libxslt/patches/patch-CVE-2017-5029 |  58 -----------------------
 textproc/libxslt/patches/patch-ah            |  69 ----------------------------
 5 files changed, 9 insertions(+), 138 deletions(-)

diffs (180 lines):

diff -r c68043129a91 -r ae1d3c75fa9e textproc/libxslt/Makefile
--- a/textproc/libxslt/Makefile Sun Sep 10 20:50:17 2017 +0000
+++ b/textproc/libxslt/Makefile Sun Sep 10 20:56:24 2017 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.105 2017/05/23 23:37:01 tez Exp $
+# $NetBSD: Makefile,v 1.106 2017/09/10 20:56:24 wiz Exp $
 
-PKGREVISION= 2
 .include "Makefile.common"
 
 BUILD_DEPENDS+=        docbook-xml-[0-9]*:../../textproc/docbook-xml
diff -r c68043129a91 -r ae1d3c75fa9e textproc/libxslt/Makefile.common
--- a/textproc/libxslt/Makefile.common  Sun Sep 10 20:50:17 2017 +0000
+++ b/textproc/libxslt/Makefile.common  Sun Sep 10 20:56:24 2017 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.2 2017/01/19 18:52:27 agc Exp $
+# $NetBSD: Makefile.common,v 1.3 2017/09/10 20:56:24 wiz Exp $
 #
 # used by textproc/libxslt/Makefile
 # used by textproc/py-libxslt/Makefile
 
-DISTNAME=      libxslt-1.1.29
+DISTNAME=      libxslt-1.1.30
 CATEGORIES=    textproc
 MASTER_SITES=  ftp://xmlsoft.org/libxslt/
 MASTER_SITES+= http://xmlsoft.org/sources/
diff -r c68043129a91 -r ae1d3c75fa9e textproc/libxslt/distinfo
--- a/textproc/libxslt/distinfo Sun Sep 10 20:50:17 2017 +0000
+++ b/textproc/libxslt/distinfo Sun Sep 10 20:56:24 2017 +0000
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.60 2017/05/23 23:37:01 tez Exp $
+$NetBSD: distinfo,v 1.61 2017/09/10 20:56:24 wiz Exp $
 
-SHA1 (libxslt-1.1.29.tar.gz) = edcaeabb3555ae44853bdc406ee9521fb65c620d
-RMD160 (libxslt-1.1.29.tar.gz) = 40a5202b3967db6b01cd6c0e722a9e459cac7960
-SHA512 (libxslt-1.1.29.tar.gz) = a1ce555a74a9dabe65e8f64bb66e27e77760fd76940d88f2d59f58dd63ca73c8ae59f3fcbd8e76c8f92ff992fb0c09328528c20ea38ccac83e63252106bf5f31
-Size (libxslt-1.1.29.tar.gz) = 3428524 bytes
-SHA1 (patch-CVE-2017-5029) = 98658fa048e440ef72460d4e082c0fd282154aa1
+SHA1 (libxslt-1.1.30.tar.gz) = 3cb6eb8e7d410a1d21e6d7a76003220140cb2dbe
+RMD160 (libxslt-1.1.30.tar.gz) = 46c13d4eeaaf28729d95d0dc19ad03837aa27603
+SHA512 (libxslt-1.1.30.tar.gz) = d24e37398503b6bc29245a993738df51bf3948c4a8f052eedd7eac0a9fcff2d5b54220f37070c46f763e073c34bdb3153c9f129aa0df60c3d7cf7eadbbf15986
+Size (libxslt-1.1.30.tar.gz) = 3444029 bytes
 SHA1 (patch-ae) = 40ce3940a93b6a2dc804f62676909d3313e0ea52
-SHA1 (patch-ah) = f92809ab34e53962ec8b62e50ded7a27c89f10f8
+SHA1 (patch-configure) = 8fcfa34ed4003e2166edcf6a181b846b7122a30a
diff -r c68043129a91 -r ae1d3c75fa9e textproc/libxslt/patches/patch-CVE-2017-5029
--- a/textproc/libxslt/patches/patch-CVE-2017-5029      Sun Sep 10 20:50:17 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-$NetBSD: patch-CVE-2017-5029,v 1.1 2017/05/23 23:37:01 tez Exp $
-
-Patch for CVE-2017-5029 from:
- https://git.gnome.org/browse/libxslt/commit/?id=08ab2774b870de1c7b5a48693df75e8154addae5
-
-
---- libxslt/xsltInternals.h.orig       2017-05-23 23:14:05.625798800 +0000
-+++ libxslt/xsltInternals.h
-@@ -1754,8 +1754,8 @@ struct _xsltTransformContext {
-      * Speed optimization when coalescing text nodes
-      */
-     const xmlChar  *lasttext;         /* last text node content */
--    unsigned int    lasttsize;                /* last text node size */
--    unsigned int    lasttuse;         /* last text node use */
-+    int                   lasttsize;          /* last text node size */
-+    int                   lasttuse;           /* last text node use */
-     /*
-      * Per Context Debugging
-      */
-
---- libxslt/transform.c.orig   2017-05-23 23:14:23.480987400 +0000
-+++ libxslt/transform.c
-@@ -816,13 +816,32 @@ xsltAddTextString(xsltTransformContextPt
-         return(target);
- 
-     if (ctxt->lasttext == target->content) {
-+      int minSize;
- 
--      if (ctxt->lasttuse + len >= ctxt->lasttsize) {
-+      /* Check for integer overflow accounting for NUL terminator. */
-+      if (len >= INT_MAX - ctxt->lasttuse) {
-+          xsltTransformError(ctxt, NULL, target,
-+              "xsltCopyText: text allocation failed\n");
-+          return(NULL);
-+      }
-+      minSize = ctxt->lasttuse + len + 1;
-+
-+      if (ctxt->lasttsize < minSize) {
-           xmlChar *newbuf;
-           int size;
-+          int extra;
-+
-+          /* Double buffer size but increase by at least 100 bytes. */
-+          extra = minSize < 100 ? 100 : minSize;
-+
-+          /* Check for integer overflow. */
-+          if (extra > INT_MAX - ctxt->lasttsize) {
-+              size = INT_MAX;
-+          }
-+          else {
-+              size = ctxt->lasttsize + extra;
-+          }
- 
--          size = ctxt->lasttsize + len + 100;
--          size *= 2;
-           newbuf = (xmlChar *) xmlRealloc(target->content,size);
-           if (newbuf == NULL) {
-               xsltTransformError(ctxt, NULL, target,
diff -r c68043129a91 -r ae1d3c75fa9e textproc/libxslt/patches/patch-ah
--- a/textproc/libxslt/patches/patch-ah Sun Sep 10 20:50:17 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-$NetBSD: patch-ah,v 1.3 2012/11/27 12:17:51 adam Exp $
-
-Fix syms file for stricter solaris ld
-
---- libxslt/libxslt_solaris.syms.orig  2012-11-27 12:04:43.000000000 +0000
-+++ libxslt/libxslt_solaris.syms
-@@ -107,7 +107,7 @@ LIBXML2_1.0.11 {
-   xsltFreeCompMatchList;
-   xsltFreeTemplateHashes;
-   xsltGetTemplate;
--  xsltMatchPattern;
-+# xsltMatchPattern;
-   xsltTestCompMatchList;
- 
- # preproc
-@@ -407,7 +407,7 @@ LIBXML2_1.1.18 {
-     global:
- 
- # xsltInternals
--  xsltConstNamespaceNameXSLT; # variable
-+# xsltConstNamespaceNameXSLT; # variable
-   xsltExtensionInstructionResultFinalize;
-   xsltExtensionInstructionResultRegister;
-   xsltInitCtxtKey;
-@@ -416,24 +416,24 @@ LIBXML2_1.1.18 {
-   xsltInit;
- 
- # xsltInternals
--  xsltParseAnyXSLTElem;
--  xsltParseSequenceConstructor;
--  xsltPointerListAddSize;
--  xsltPointerListClear;
--  xsltPointerListCreate;
--  xsltPointerListFree;
-+# xsltParseAnyXSLTElem;
-+# xsltParseSequenceConstructor;
-+# xsltPointerListAddSize;
-+# xsltPointerListClear;
-+# xsltPointerListCreate;
-+# xsltPointerListFree;
-   xsltRegisterLocalRVT;
-   xsltReleaseRVT;
--  xsltRestoreDocumentNamespaces;
-+# xsltRestoreDocumentNamespaces;
- 
- # extensions
--  xsltStyleStylesheetLevelGetExtData;
-+# xsltStyleStylesheetLevelGetExtData;
- 
- # xsltInternals
- # xsltTransStorageAdd; removed in 1.1.28
- # xsltTransStorageRemove; removed in 1.1.28
-   xsltUninit;
--  xsltXSLTAttrMarker; # variable
-+# xsltXSLTAttrMarker; # variable
- } LIBXML2_1.1.9;
- 
- LIBXML2_1.1.20 {
-@@ -476,6 +476,10 @@ LIBXML2_1.1.26 {
- 
- # transform
-   xsltProcessOneNode;
-+
-+# Solaris ld needs explicit auto-reduction (or, alternatively, "-B local")
-+    local:
-+  *;
- } LIBXML2_1.1.25;
- 
- LIBXML2_1.1.27 {



Home | Main Index | Thread Index | Old Index