texlive[42964] Build/source/libs: poppler 0.51.0

commits+kakuto at tug.org commits+kakuto at tug.org
Mon Jan 16 00:48:36 CET 2017


Revision: 42964
          http://tug.org/svn/texlive?view=revision&revision=42964
Author:   kakuto
Date:     2017-01-16 00:48:36 +0100 (Mon, 16 Jan 2017)
Log Message:
-----------
poppler 0.51.0

Modified Paths:
--------------
    trunk/Build/source/libs/README
    trunk/Build/source/libs/poppler/ChangeLog
    trunk/Build/source/libs/poppler/configure
    trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog
    trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes
    trunk/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX
    trunk/Build/source/libs/poppler/poppler-PATCHES/patch-03-Object-functions
    trunk/Build/source/libs/poppler/poppler-src/CMakeLists.txt
    trunk/Build/source/libs/poppler/poppler-src/ChangeLog
    trunk/Build/source/libs/poppler/poppler-src/NEWS
    trunk/Build/source/libs/poppler/poppler-src/configure.ac
    trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h
    trunk/Build/source/libs/poppler/poppler-src/poppler/PDFDoc.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/SignatureHandler.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.cmake
    trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.in
    trunk/Build/source/libs/poppler/version.ac

Modified: trunk/Build/source/libs/README
===================================================================
--- trunk/Build/source/libs/README	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/README	2017-01-15 23:48:36 UTC (rev 42964)
@@ -49,7 +49,7 @@
 pixman 0.34.0 - checked 04feb16
   http://cairographics.org/releases/
 
-poppler 0.50.0 - checked 16dec16
+poppler 0.51.0 - checked 15jan17
   http://poppler.freedesktop.org/ - used by luatex and xetex
 
 potrace 1.13 - checked 28dec15

Modified: trunk/Build/source/libs/poppler/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/ChangeLog	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/ChangeLog	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,3 +1,8 @@
+2017-01-15  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Import poppler-0.51.0.
+	* version.ac: Adjust.
+
 2016-12-16  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Import poppler-0.50.0.

Modified: trunk/Build/source/libs/poppler/configure
===================================================================
--- trunk/Build/source/libs/poppler/configure	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/configure	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for poppler (TeX Live) 0.50.0.
+# Generated by GNU Autoconf 2.69 for poppler (TeX Live) 0.51.0.
 #
 # Report bugs to <tex-k at tug.org>.
 #
@@ -580,8 +580,8 @@
 # Identity of this package.
 PACKAGE_NAME='poppler (TeX Live)'
 PACKAGE_TARNAME='poppler--tex-live-'
-PACKAGE_VERSION='0.50.0'
-PACKAGE_STRING='poppler (TeX Live) 0.50.0'
+PACKAGE_VERSION='0.51.0'
+PACKAGE_STRING='poppler (TeX Live) 0.51.0'
 PACKAGE_BUGREPORT='tex-k at tug.org'
 PACKAGE_URL=''
 
@@ -1306,7 +1306,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures poppler (TeX Live) 0.50.0 to adapt to many kinds of systems.
+\`configure' configures poppler (TeX Live) 0.51.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1373,7 +1373,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of poppler (TeX Live) 0.50.0:";;
+     short | recursive ) echo "Configuration of poppler (TeX Live) 0.51.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1486,7 +1486,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-poppler (TeX Live) configure 0.50.0
+poppler (TeX Live) configure 0.51.0
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2076,7 +2076,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by poppler (TeX Live) $as_me 0.50.0, which was
+It was created by poppler (TeX Live) $as_me 0.51.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3999,7 +3999,7 @@
 
 # Define the identity of the package.
  PACKAGE='poppler--tex-live-'
- VERSION='0.50.0'
+ VERSION='0.51.0'
 
 
 # Some tools Automake needs.
@@ -6578,7 +6578,7 @@
 
 
 cat >>confdefs.h <<_ACEOF
-#define POPPLER_VERSION "0.50.0"
+#define POPPLER_VERSION "0.51.0"
 _ACEOF
 
 
@@ -7272,7 +7272,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by poppler (TeX Live) $as_me 0.50.0, which was
+This file was extended by poppler (TeX Live) $as_me 0.51.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -7338,7 +7338,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-poppler (TeX Live) config.status 0.50.0
+poppler (TeX Live) config.status 0.51.0
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,3 +1,9 @@
+2017-01-15  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Imported poppler-0.51.0 source tree from:
+	  http://poppler.freedesktop.org/
+	* patch-02-LLONG_MAX, patch-03-Object-functions: Adapted.
+
 2016-12-16  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Imported poppler-0.50.0 source tree from:

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,4 +1,4 @@
-Changes applied to the poppler-0.50.0 tree as obtained from:
+Changes applied to the poppler-0.51.0 tree as obtained from:
 	http://poppler.freedesktop.org/
 
 Removed:

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,6 +1,6 @@
-diff -ur poppler-0.50.0.orig/goo/GooString.h poppler-0.50.0/goo/GooString.h
---- poppler-0.50.0.orig/goo/GooString.h	Fri Dec 16 04:08:06 2016
-+++ poppler-0.50.0/goo/GooString.h	Fri Dec 16 09:22:03 2016
+diff -ur poppler-0.51.0.orig/goo/GooString.h poppler-0.51.0/goo/GooString.h
+--- poppler-0.51.0.orig/goo/GooString.h	Fri Dec 16 04:08:06 2016
++++ poppler-0.51.0/goo/GooString.h	Mon Jan 16 08:28:38 2017
 @@ -36,6 +36,21 @@
  #endif
  

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/patch-03-Object-functions
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/patch-03-Object-functions	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/patch-03-Object-functions	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,6 +1,6 @@
-diff -ur poppler-0.50.0.orig/poppler/Object.h poppler-0.50.0/poppler/Object.h
---- poppler-0.50.0.orig/poppler/Object.h	Fri Dec 16 04:08:06 2016
-+++ poppler-0.50.0/poppler/Object.h	Fri Dec 16 09:24:54 2016
+diff -ur poppler-0.51.0.orig/poppler/Object.h poppler-0.51.0/poppler/Object.h
+--- poppler-0.51.0.orig/poppler/Object.h	Fri Dec 16 04:08:06 2016
++++ poppler-0.51.0/poppler/Object.h	Mon Jan 16 08:31:27 2017
 @@ -148,7 +148,7 @@
    Object *initStream(Stream *streamA);
    Object *initRef(int numA, int genA)

Modified: trunk/Build/source/libs/poppler/poppler-src/CMakeLists.txt
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/CMakeLists.txt	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/CMakeLists.txt	2017-01-15 23:48:36 UTC (rev 42964)
@@ -22,7 +22,7 @@
 endif()
 
 set(POPPLER_MAJOR_VERSION "0")
-set(POPPLER_MINOR_VERSION "50")
+set(POPPLER_MINOR_VERSION "51")
 set(POPPLER_MICRO_VERSION "0")
 set(POPPLER_VERSION "${POPPLER_MAJOR_VERSION}.${POPPLER_MINOR_VERSION}.${POPPLER_MICRO_VERSION}")
 

Modified: trunk/Build/source/libs/poppler/poppler-src/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/ChangeLog	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/ChangeLog	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,5 +1,133 @@
-commit 281f3a2ec4be515a8876a66575341f404a6a0208
+commit dc8edecc437f33305257b6cb208dc2da367b7868
 Author: Albert Astals Cid <aacid at kde.org>
+Date:   Sun Jan 15 18:27:49 2017 +0100
+
+    Poppler 0.51
+
+ CMakeLists.txt         |  2 +-
+ NEWS                   | 15 ++++++++++++++-
+ configure.ac           |  2 +-
+ cpp/Doxyfile           |  2 +-
+ qt4/src/Doxyfile       |  2 +-
+ qt5/src/CMakeLists.txt |  2 +-
+ qt5/src/Doxyfile       |  2 +-
+ qt5/src/Makefile.am    |  2 +-
+ 8 files changed, 21 insertions(+), 8 deletions(-)
+
+commit c4de00a93c470020c6c96eb343854039bfc0a424
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Sat Jan 14 23:42:32 2017 +0100
+
+    Forgot to update the \since value
+
+ qt5/src/poppler-form.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0eb28e216fc45fe5ceed1c093a541ceca0dc0397
+Author: Christoph Cullmann <cullmann at kde.org>
+Date:   Fri Jan 13 00:03:27 2017 +0100
+
+    qt5: Fix segfault/assert if LinkDestination is constructed with
+    invalid input string.
+
+    Bug #99357
+
+ qt5/src/poppler-link.cc | 24 +++++++++++++-----------
+ 1 file changed, 13 insertions(+), 11 deletions(-)
+
+commit 4db6507320b51e060f73f7fb0eab364e8a1fee77
+Author: Sebastian Rasmussen <sebras at gmail.com>
+Date:   Wed Jan 11 23:37:54 2017 +0100
+
+    Check for error from NSS in SignatureHandler construct.
+
+    And cascading effects in other SignalHandler members.
+
+    Bug #99363
+
+ poppler/SignatureHandler.cc | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+commit 8bb90fc828a3400a2464a38f0ec9e592754197dd
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Tue Jan 10 17:20:18 2017 +0100
+
+    Qt5: Minor api refinements to the new signature classes
+
+ qt5/src/poppler-form.cc     | 32 +++++++++++++++++++++-----------
+ qt5/src/poppler-form.h      | 22 +++++++++++-----------
+ qt5/tests/poppler-forms.cpp | 14 +++++++-------
+ 3 files changed, 39 insertions(+), 29 deletions(-)
+
+commit aa63debdaa6001ed68333b31cd06c2f9958fd8d2
+Author: Hanno Meyer-Thurow <h.mth at web.de>
+Date:   Tue Jan 10 16:28:14 2017 +0100
+
+    Qt5: Implement digital signature support
+
+    Bug #94378
+
+ qt5/src/poppler-form.cc     | 121
+ ++++++++++++++++++++++++++++++++++++++++++++
+ qt5/src/poppler-form.h      | 106 ++++++++++++++++++++++++++++++++++++++
+ qt5/src/poppler-page.cc     |   7 +++
+ qt5/tests/poppler-forms.cpp |  47 ++++++++++++++++-
+ 4 files changed, 280 insertions(+), 1 deletion(-)
+
+commit 2f831d5b9481e5ab06178409f7fccf74eda6e1a2
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Mon Jan 9 00:30:42 2017 +0100
+
+    New year!
+
+ poppler/poppler-config.h.cmake | 2 +-
+ poppler/poppler-config.h.in    | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit b6c4d6d1312f63e5e6dcfa28ea48ff3e6935daa9
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Mon Jan 9 00:28:37 2017 +0100
+
+    Fix memory leak in PDFDoc::markAnnotations
+
+ poppler/PDFDoc.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 3cae7773d2f8ad6506e2712689c56fa6975e01d3
+Author: Thomas Freitag <Thomas.Freitag at alfa.de>
+Date:   Mon Jan 9 00:25:53 2017 +0100
+
+    pdfunite: add fields to AcroForm dict
+
+    Bug #99141
+
+ utils/pdfunite.cc | 33 +++++++++++++++++++++++++++++++--
+ 1 file changed, 31 insertions(+), 2 deletions(-)
+
+commit c301f6c675784a65fb2ebdf99ded5d5d3f8defdd
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Mon Dec 19 22:53:47 2016 +0100
+
+    qt5: Add Poppler::FormField::setName
+
+ qt5/src/poppler-form.cc |  9 ++++++++-
+ qt5/src/poppler-form.h  | 10 ++++++++--
+ 2 files changed, 16 insertions(+), 3 deletions(-)
+
+commit 86c99de95cd16199e0f9f1fb82999c27d54c5b76
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Mon Dec 19 22:53:10 2016 +0100
+
+    Add Form[Field|Widget]::setPartialName
+
+    Useful to repair/tweak pdf files
+
+ poppler/Form.cc | 16 ++++++++++++++++
+ poppler/Form.h  |  2 ++
+ 2 files changed, 18 insertions(+)
+
+commit 56dfa44960b9ab9fb4dcc01d8e3861a9293b0ee0
+Author: Albert Astals Cid <aacid at kde.org>
 Date:   Thu Dec 15 23:32:41 2016 +0100
 
     Poppler 0.50
@@ -11,11 +139,11 @@
  poppler/Makefile.am    |  2 +-
  qt4/src/CMakeLists.txt |  2 +-
  qt4/src/Doxyfile       |  2 +-
- qt4/src/Makefile.am    |  2 +-
+ qt4/src/Makefile.am    |  3 ++-
  qt5/src/CMakeLists.txt |  2 +-
  qt5/src/Doxyfile       |  2 +-
- qt5/src/Makefile.am    |  2 +-
- 11 files changed, 36 insertions(+), 11 deletions(-)
+ qt5/src/Makefile.am    |  3 ++-
+ 11 files changed, 38 insertions(+), 11 deletions(-)
 
 commit 1511523450f40b539fb1d58950a907f3712fd5c7
 Author: Albert Astals Cid <aacid at kde.org>

Modified: trunk/Build/source/libs/poppler/poppler-src/NEWS
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/NEWS	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/NEWS	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,3 +1,17 @@
+Release 0.51.0
+        core:
+         * Check for error from NSS in SignatureHandler construct. Bug #99363
+         * Add Form[Field|Widget]::setPartialName
+         * Fix memory leak in PDFDoc::markAnnotations
+
+        qt5:
+         * Implement digital signature support. Bug #94378
+         * Add Poppler::FormField::setName
+         * Fix segfault/assert if LinkDestination is constructed with invalid input string. Bug #99357
+
+        utils:
+         * pdfunite: add fields to AcroForm dict. Bug #99141
+
 Release 0.50.0
         core:
          * PSOutputDev: Fix PS conversion for some files. Bug #63963
@@ -22,7 +36,6 @@
         glib:
          * Use g_slice_new0 for PopplerActionLayer. Bug #98786
 
-
 Release 0.49.0
         core:
          * Merge type3 glyph handling from xpdf 3.04. Bug #96667

Modified: trunk/Build/source/libs/poppler/poppler-src/configure.ac
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/configure.ac	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/configure.ac	2017-01-15 23:48:36 UTC (rev 42964)
@@ -1,5 +1,5 @@
 m4_define([poppler_version_major],[0])
-m4_define([poppler_version_minor],[50])
+m4_define([poppler_version_minor],[51])
 m4_define([poppler_version_micro],[0])
 m4_define([poppler_version],[poppler_version_major.poppler_version_minor.poppler_version_micro])
 

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc	2017-01-15 23:48:36 UTC (rev 42964)
@@ -147,6 +147,11 @@
   return field->getPartialName();
 }
 
+void FormWidget::setPartialName(const GooString &name)
+{
+  field->setPartialName(name);
+}
+
 GooString *FormWidget::getAlternateUiName() const {
   return field->getAlternateUiName();
 }
@@ -611,6 +616,17 @@
   obj1.free();
 }
 
+void FormField::setPartialName(const GooString &name)
+{
+  delete partialName;
+  partialName = name.copy();
+
+  Object obj1;
+  obj1.initString(name.copy());
+  obj.getDict()->set("T", &obj1);
+  xref->setModifiedObject(&obj, ref);
+}
+
 FormField::~FormField()
 {
   if (!terminal) {

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h	2017-01-15 23:48:36 UTC (rev 42964)
@@ -98,6 +98,7 @@
   double getFontSize() const;
 
   GooString *getPartialName() const;
+  void setPartialName(const GooString &name);
   GooString *getAlternateUiName() const;
   GooString *getMappingName() const;
   GooString *getFullyQualifiedName();
@@ -279,6 +280,7 @@
   VariableTextQuadding getTextQuadding() const { return quadding; }
 
   GooString *getPartialName() const { return partialName; }
+  void setPartialName(const GooString &name);
   GooString *getAlternateUiName() const { return alternateUiName; }
   GooString *getMappingName() const { return mappingName; }
   GooString *getFullyQualifiedName();

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/PDFDoc.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/PDFDoc.cc	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/PDFDoc.cc	2017-01-15 23:48:36 UTC (rev 42964)
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2005, 2006, 2008 Brad Hards <bradh at frogmouth.net>
-// Copyright (C) 2005, 2007-2009, 2011-2016 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005, 2007-2009, 2011-2017 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2008 Julien Rebetez <julienr at svn.gnome.org>
 // Copyright (C) 2008, 2010 Pino Toscano <pino at kde.org>
 // Copyright (C) 2008, 2010, 2011 Carlos Garcia Campos <carlosgc at gnome.org>
@@ -1735,9 +1735,9 @@
                 Object obj3;
                 array->getNF(i, &obj3);
                 if (obj3.isRef()) {
-                  Object *newRef = new Object();
-                  newRef->initRef(newPageNum, 0);
-                  dict->set("P", newRef);
+                  Object newRef;
+                  newRef.initRef(newPageNum, 0);
+                  dict->set("P", &newRef);
                   getXRef()->setModifiedObject(&obj1, obj3.getRef());
                 }
                 obj3.free();

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/SignatureHandler.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/SignatureHandler.cc	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/SignatureHandler.cc	2017-01-15 23:48:36 UTC (rev 42964)
@@ -8,6 +8,7 @@
 // Copyright 2015 André Esser <bepandre at hotmail.com>
 // Copyright 2015, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright 2015 Markus Kilås <digital at markuspage.com>
+// Copyright 2017 Sebastian Rasmussen <sebras at gmail.com>
 //
 //========================================================================
 
@@ -105,7 +106,8 @@
 
 
 SignatureHandler::SignatureHandler(unsigned char *p7, int p7_length)
- : CMSMessage(NULL),
+ : hash_context(NULL),
+   CMSMessage(NULL),
    CMSSignedData(NULL),
    CMSSignerInfo(NULL),
    temp_certs(NULL)
@@ -115,8 +117,10 @@
   CMSitem.len = p7_length;
   CMSMessage = CMS_MessageCreate(&CMSitem);
   CMSSignedData = CMS_SignedDataCreate(CMSMessage);
-  CMSSignerInfo = CMS_SignerInfoCreate(CMSSignedData);
-  hash_context = initHashContext();
+  if (CMSSignedData) {
+    CMSSignerInfo = CMS_SignerInfoCreate(CMSSignedData);
+    hash_context = initHashContext();
+  }
 }
 
 HASHContext * SignatureHandler::initHashContext()
@@ -131,7 +135,9 @@
 
 void SignatureHandler::updateHash(unsigned char * data_block, int data_len)
 {
-  HASH_Update(hash_context, data_block, data_len);
+  if (hash_context) {
+    HASH_Update(hash_context, data_block, data_len);
+  }
 }
 
 SignatureHandler::~SignatureHandler()

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.cmake
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.cmake	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.cmake	2017-01-15 23:48:36 UTC (rev 42964)
@@ -135,7 +135,7 @@
 //------------------------------------------------------------------------
 
 // copyright notice
-#define popplerCopyright "Copyright 2005-2016 The Poppler Developers - http://poppler.freedesktop.org"
+#define popplerCopyright "Copyright 2005-2017 The Poppler Developers - http://poppler.freedesktop.org"
 #define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC"
 
 //------------------------------------------------------------------------

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.in
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.in	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/poppler-config.h.in	2017-01-15 23:48:36 UTC (rev 42964)
@@ -135,7 +135,7 @@
 //------------------------------------------------------------------------
 
 // copyright notice
-#define popplerCopyright "Copyright 2005-2016 The Poppler Developers - http://poppler.freedesktop.org"
+#define popplerCopyright "Copyright 2005-2017 The Poppler Developers - http://poppler.freedesktop.org"
 #define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC"
 
 //------------------------------------------------------------------------

Modified: trunk/Build/source/libs/poppler/version.ac
===================================================================
--- trunk/Build/source/libs/poppler/version.ac	2017-01-15 23:21:16 UTC (rev 42963)
+++ trunk/Build/source/libs/poppler/version.ac	2017-01-15 23:48:36 UTC (rev 42964)
@@ -8,4 +8,4 @@
 dnl --------------------------------------------------------
 dnl
 dnl  m4-include this file to define the current poppler version
-m4_define([poppler_version], [0.50.0])
+m4_define([poppler_version], [0.51.0])



More information about the tex-live-commits mailing list