texlive[41475] Build/source/libs: poppler 0.45.0

commits+kakuto at tug.org commits+kakuto at tug.org
Sat Jun 18 01:37:11 CEST 2016


Revision: 41475
          http://tug.org/svn/texlive?view=revision&revision=41475
Author:   kakuto
Date:     2016-06-18 01:37:11 +0200 (Sat, 18 Jun 2016)
Log Message:
-----------
poppler 0.45.0

Modified Paths:
--------------
    trunk/Build/source/libs/README
    trunk/Build/source/libs/poppler/ChangeLog
    trunk/Build/source/libs/poppler/Makefile.am
    trunk/Build/source/libs/poppler/Makefile.in
    trunk/Build/source/libs/poppler/config.h.in
    trunk/Build/source/libs/poppler/configure
    trunk/Build/source/libs/poppler/configure.ac
    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/ConfigureChecks.cmake
    trunk/Build/source/libs/poppler/poppler-src/NEWS
    trunk/Build/source/libs/poppler/poppler-src/config.h.cmake
    trunk/Build/source/libs/poppler/poppler-src/config.h.in
    trunk/Build/source/libs/poppler/poppler-src/configure.ac
    trunk/Build/source/libs/poppler/poppler-src/goo/Makefile.am
    trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.h
    trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.h
    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/JBIG2Stream.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/Makefile.am
    trunk/Build/source/libs/poppler/poppler-src/poppler/Page.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/SplashOutputDev.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/Stream.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/UTF.cc
    trunk/Build/source/libs/poppler/poppler-src/poppler/UnicodeTypeTable.cc
    trunk/Build/source/libs/poppler/poppler-src/splash/Splash.cc
    trunk/Build/source/libs/poppler/version.ac

Added Paths:
-----------
    trunk/Build/source/libs/poppler/poppler-src/goo/glibc.cc
    trunk/Build/source/libs/poppler/poppler-src/goo/glibc.h

Modified: trunk/Build/source/libs/README
===================================================================
--- trunk/Build/source/libs/README	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/README	2016-06-17 23:37:11 UTC (rev 41475)
@@ -49,7 +49,7 @@
 pixman 0.34.0 - checked 04feb16
   http://cairographics.org/releases/
 
-poppler 0.44.0 - checked 07jun16
+poppler 0.45.0 - checked 18jun16
   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	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/ChangeLog	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,3 +1,8 @@
+2016-06-18  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Import poppler-0.45.0.
+	* version.ac, configure.ac, config.h.in, Makefile.am: Adjust.
+
 2016-05-22  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Import poppler-0.44.0.

Modified: trunk/Build/source/libs/poppler/Makefile.am
===================================================================
--- trunk/Build/source/libs/poppler/Makefile.am	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/Makefile.am	2016-06-17 23:37:11 UTC (rev 41475)
@@ -42,6 +42,7 @@
 goo_libGoo_a_sources = \
 	@POPPLER_TREE@/goo/gfile.cc \
 	@POPPLER_TREE@/goo/gmem.cc \
+	@POPPLER_TREE@/goo/glibc.cc \
 	@POPPLER_TREE@/goo/gmempp.cc \
 	@POPPLER_TREE@/goo/grandom.cc \
 	@POPPLER_TREE@/goo/gstrtod.cc \

Modified: trunk/Build/source/libs/poppler/Makefile.in
===================================================================
--- trunk/Build/source/libs/poppler/Makefile.in	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/Makefile.in	2016-06-17 23:37:11 UTC (rev 41475)
@@ -115,6 +115,7 @@
 libpoppler_a_LIBADD =
 am__dirstamp = $(am__leading_dot)dirstamp
 am__objects_1 = @POPPLER_TREE@/goo/gfile.$(OBJEXT) \
+	@POPPLER_TREE@/goo/glibc.$(OBJEXT) \
 	@POPPLER_TREE@/goo/gmem.$(OBJEXT) \
 	@POPPLER_TREE@/goo/gmempp.$(OBJEXT) \
 	@POPPLER_TREE@/goo/grandom.$(OBJEXT) \
@@ -451,6 +452,7 @@
 
 goo_libGoo_a_sources = \
 	@POPPLER_TREE@/goo/gfile.cc \
+	@POPPLER_TREE@/goo/glibc.cc \
 	@POPPLER_TREE@/goo/gmem.cc \
 	@POPPLER_TREE@/goo/gmempp.cc \
 	@POPPLER_TREE@/goo/grandom.cc \
@@ -617,6 +619,8 @@
 @POPPLER_TREE@/goo/gfile.$(OBJEXT):  \
 	@POPPLER_TREE@/goo/$(am__dirstamp) \
 	@POPPLER_TREE@/goo/$(DEPDIR)/$(am__dirstamp)
+ at POPPLER_TREE@/goo/glibc.$(OBJEXT): @POPPLER_TREE@/goo/$(am__dirstamp) \
+	@POPPLER_TREE@/goo/$(DEPDIR)/$(am__dirstamp)
 @POPPLER_TREE@/goo/gmem.$(OBJEXT): @POPPLER_TREE@/goo/$(am__dirstamp) \
 	@POPPLER_TREE@/goo/$(DEPDIR)/$(am__dirstamp)
 @POPPLER_TREE@/goo/gmempp.$(OBJEXT):  \
@@ -889,6 +893,7 @@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/GooString.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/GooTimer.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/gfile.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/glibc.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/gmem.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/gmempp.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@POPPLER_TREE@/goo/$(DEPDIR)/grandom.Po at am__quote@

Modified: trunk/Build/source/libs/poppler/config.h.in
===================================================================
--- trunk/Build/source/libs/poppler/config.h.in	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/config.h.in	2016-06-17 23:37:11 UTC (rev 41475)
@@ -37,6 +37,9 @@
 /* Define to 1 if you have the `rand_r' function. */
 #undef HAVE_RAND_R
 
+/* Define to 1 if you have the `timegm' function. */
+#undef HAVE_TIMEGM
+
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 

Modified: trunk/Build/source/libs/poppler/configure
===================================================================
--- trunk/Build/source/libs/poppler/configure	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/configure	2016-06-17 23:37:11 UTC (rev 41475)
@@ -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.44.0.
+# Generated by GNU Autoconf 2.69 for poppler (TeX Live) 0.45.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.44.0'
-PACKAGE_STRING='poppler (TeX Live) 0.44.0'
+PACKAGE_VERSION='0.45.0'
+PACKAGE_STRING='poppler (TeX Live) 0.45.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.44.0 to adapt to many kinds of systems.
+\`configure' configures poppler (TeX Live) 0.45.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.44.0:";;
+     short | recursive ) echo "Configuration of poppler (TeX Live) 0.45.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.44.0
+poppler (TeX Live) configure 0.45.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.44.0, which was
+It was created by poppler (TeX Live) $as_me 0.45.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.44.0'
+ VERSION='0.45.0'
 
 
 # Some tools Automake needs.
@@ -6203,7 +6203,7 @@
 
 
 
-for ac_func in gettimeofday gmtime_r mkstemp popen rand_r
+for ac_func in gettimeofday gmtime_r mkstemp popen rand_r timegm
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -6578,7 +6578,7 @@
 
 
 cat >>confdefs.h <<_ACEOF
-#define POPPLER_VERSION "0.44.0"
+#define POPPLER_VERSION "0.45.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.44.0, which was
+This file was extended by poppler (TeX Live) $as_me 0.45.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.44.0
+poppler (TeX Live) config.status 0.45.0
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/libs/poppler/configure.ac
===================================================================
--- trunk/Build/source/libs/poppler/configure.ac	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/configure.ac	2016-06-17 23:37:11 UTC (rev 41475)
@@ -70,7 +70,7 @@
 
 dnl **** Checks for library functions ****
 
-AC_CHECK_FUNCS([gettimeofday gmtime_r mkstemp popen rand_r])
+AC_CHECK_FUNCS([gettimeofday gmtime_r mkstemp popen rand_r timegm])
 AC_SYS_LARGEFILE
 AC_FUNC_FSEEKO
 AC_CHECK_FUNC([ftell64], [AC_CHECK_FUNCS([fseek64])])

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/ChangeLog	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,3 +1,9 @@
+2016-06-18  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Imported poppler-0.45.0 source tree from:
+	  http://poppler.freedesktop.org/
+	* patch-02-LLONG_MAX, patch-03-Object-functions: Adapted.
+
 2016-05-22  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Imported poppler-0.44.0 source tree from:

Modified: trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes
===================================================================
--- trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/TL-Changes	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,4 +1,4 @@
-Changes applied to the poppler-0.44.0 tree as obtained from:
+Changes applied to the poppler-0.45.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	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/patch-02-LLONG_MAX	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,6 +1,6 @@
-diff -ur poppler-0.44.0.orig/goo/GooString.h poppler-0.44.0/goo/GooString.h
---- poppler-0.44.0.orig/goo/GooString.h	Wed May 11 07:47:44 2016
-+++ poppler-0.44.0/goo/GooString.h	Sun May 22 07:38:25 2016
+diff -ur poppler-0.45.0.orig/goo/GooString.h poppler-0.45.0/goo/GooString.h
+--- poppler-0.45.0.orig/goo/GooString.h	Wed May 11 07:47:44 2016
++++ poppler-0.45.0/goo/GooString.h	Sat Jun 18 06:46:31 2016
 @@ -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	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-PATCHES/patch-03-Object-functions	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,6 +1,6 @@
-diff -ur poppler-0.44.0.orig/poppler/Object.h poppler-0.44.0/poppler/Object.h
---- poppler-0.44.0.orig/poppler/Object.h	Mon May 02 07:08:03 2016
-+++ poppler-0.44.0/poppler/Object.h	Sun May 22 07:42:07 2016
+diff -ur poppler-0.45.0.orig/poppler/Object.h poppler-0.45.0/poppler/Object.h
+--- poppler-0.45.0.orig/poppler/Object.h	Wed Jun 01 01:40:39 2016
++++ poppler-0.45.0/poppler/Object.h	Sat Jun 18 06:49:28 2016
 @@ -147,7 +147,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	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/CMakeLists.txt	2016-06-17 23:37:11 UTC (rev 41475)
@@ -22,7 +22,7 @@
 endif()
 
 set(POPPLER_MAJOR_VERSION "0")
-set(POPPLER_MINOR_VERSION "44")
+set(POPPLER_MINOR_VERSION "45")
 set(POPPLER_MICRO_VERSION "0")
 set(POPPLER_VERSION "${POPPLER_MAJOR_VERSION}.${POPPLER_MINOR_VERSION}.${POPPLER_MICRO_VERSION}")
 
@@ -325,6 +325,7 @@
   goo/ImgWriter.cc
   goo/gstrtod.cc
   goo/grandom.cc
+  goo/glibc.cc
   fofi/FoFiBase.cc
   fofi/FoFiEncodings.cc
   fofi/FoFiTrueType.cc
@@ -501,7 +502,7 @@
 else(MSVC)
 add_library(poppler SHARED ${poppler_SRCS})
 endif(MSVC)
-set_target_properties(poppler PROPERTIES VERSION 61.0.0 SOVERSION 61)
+set_target_properties(poppler PROPERTIES VERSION 62.0.0 SOVERSION 62)
 target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS})
 install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX})
 

Modified: trunk/Build/source/libs/poppler/poppler-src/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/ChangeLog	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/ChangeLog	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,3 +1,288 @@
+commit dfbb98327cbbc173a63f5db36b6606a93e5166aa
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Fri Jun 17 00:04:25 2016 +0200
+
+    Poppler 0.45
+
+ CMakeLists.txt      |  4 ++--
+ NEWS                | 19 +++++++++++++++++++
+ configure.ac        |  2 +-
+ cpp/Doxyfile        |  2 +-
+ poppler/Makefile.am |  2 +-
+ qt4/src/Doxyfile    |  2 +-
+ qt5/src/Doxyfile    |  2 +-
+ 7 files changed, 26 insertions(+), 7 deletions(-)
+
+commit 3829958339b332d7ddf005d5ab98dd0ad3c8b3c6
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Thu Jun 16 23:58:07 2016 +0200
+
+    Add (C)
+
+ poppler/DateInfo.cc | 1 +
+ poppler/DateInfo.h  | 1 +
+ poppler/Form.cc     | 2 +-
+ utils/pdfinfo.cc    | 2 +-
+ 4 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 4c7e057b0315ed37bd47e304ca191191244b2963
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Fri Jun 17 00:11:50 2016 +0200
+
+    dist glibc.h
+
+    we don't install it, but we need it for building
+
+ goo/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5ee67050c400daa7bc0b0a4f5dddf21be18be124
+Author: Adrian Johnson <ajohnson at redneon.com>
+Date:   Tue Jun 14 07:32:35 2016 +0930
+
+    Fix windows compile
+
+ utils/pdfinfo.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit df0779031d6ae0180024f92602bc2a680cf73dd5
+Author: Jakub Kucharski <jakubkucharski97 at gmail.com>
+Date:   Thu May 19 16:11:04 2016 +0200
+
+    cpp: switched from detail::convert_date() to core's dateStringToTime()
+
+ cpp/poppler-document.cpp      |  4 +++-
+ cpp/poppler-embedded-file.cpp |  6 ++++--
+ cpp/poppler-global.cpp        |  6 +++++-
+ cpp/poppler-private.cpp       | 25 +------------------------
+ cpp/poppler-private.h         |  3 +--
+ 5 files changed, 14 insertions(+), 30 deletions(-)
+
+commit ff24d677c6078c3dfb54c35541369d908314bcdb
+Author: Adrian Johnson <ajohnson at redneon.com>
+Date:   Wed Feb 24 20:57:37 2016 +1030
+
+    pdfinfo: add -isodates for printing dates in ISO-8601 format
+
+ utils/pdfinfo.1  |  3 +++
+ utils/pdfinfo.cc | 36 +++++++++++++++++++++++++++++++++++-
+ 2 files changed, 38 insertions(+), 1 deletion(-)
+
+commit dd08f24f5e52c56546dfda70be483dc29e03c2e6
+Author: Adrian Johnson <ajohnson at redneon.com>
+Date:   Wed Feb 24 21:10:08 2016 +1030
+
+    pdfinfo: convert dates to local time zone
+
+ utils/pdfinfo.cc | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit e4690ee1be027dd7028e86ea6732a3f4f2680ef7
+Author: Adrian Johnson <ajohnson at redneon.com>
+Date:   Tue Feb 23 21:01:49 2016 +1030
+
+    glib: return date in UTC instead of local time
+
+    Bug 94173
+
+ ConfigureChecks.cmake |  1 +
+ config.h.cmake        |  3 +++
+ configure.ac          |  1 +
+ glib/poppler-date.cc  | 33 +++++++-------------------------
+ goo/glibc.cc          | 24 ++++++++++++++++++++++++
+ goo/glibc.h           |  4 ++++
+ poppler/DateInfo.cc   | 52
+ +++++++++++++++++++++++++++++----------------------
+ poppler/DateInfo.h    |  6 +++++-
+ poppler/Form.cc       |  2 +-
+ 9 files changed, 76 insertions(+), 50 deletions(-)
+
+commit 7936af2eeb8f84993acabd1b306da50d49256b31
+Author: Adrian Johnson <ajohnson at redneon.com>
+Date:   Tue Feb 23 20:52:30 2016 +1030
+
+    Emulate some non portable glibc functions when not available
+
+ CMakeLists.txt             |  1 +
+ cpp/tests/poppler-dump.cpp |  5 +----
+ glib/demo/utils.c          |  6 ------
+ goo/Makefile.am            |  3 ++-
+ goo/glibc.cc               | 34 ++++++++++++++++++++++++++++++++++
+ goo/glibc.h                | 33 +++++++++++++++++++++++++++++++++
+ poppler/DateInfo.cc        |  7 ++-----
+ 7 files changed, 73 insertions(+), 16 deletions(-)
+
+commit 4d799cdf9b9039b003de7d3baf05d858bc507a5a
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Thu Jun 2 00:22:05 2016 +0200
+
+    pdfinfo: Fix another leak
+
+    Again not crucial in pdfinfo itself but nice to be clean so that if it
+    the leak check fails is because the core is doing something bad
+
+ utils/JSInfo.cc | 13 ++++++++-----
+ utils/JSInfo.h  |  3 ++-
+ 2 files changed, 10 insertions(+), 6 deletions(-)
+
+commit 4daee8a8ce40aeb658964a5902ae104549f7af75
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Wed Jun 1 18:37:57 2016 +0200
+
+    Fix memory leak when failing to parse thumbs or actions
+
+ poppler/Page.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit bc6eb28776feaa302ad93e315798cad02c1e2a54
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Wed Jun 1 18:36:17 2016 +0200
+
+    pdfinto: Fix memory leak
+
+    It's not very critial that pdfinfo does not leak, but it's nice
+    to have no leaks so one can run ASAN over a file and see if something
+    is wrong or not
+
+ utils/pdfinfo.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 66617b256acfcd98f727bf11b7d7e92bcbd16de0
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Wed Jun 1 18:35:50 2016 +0200
+
+    Point ucs4 to null when len is 0
+
+    Makes it easier for the caller than can always just free the passed
+    pointer
+
+ poppler/UTF.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 0d70a57c7ad8a53e2462560a47b6ea5eba73d6c5
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Wed Jun 1 18:34:32 2016 +0200
+
+    Add docu to the get*Action methods
+
+    Since unfortunately their behaviour is different in what you have
+    to do with the pointer given
+
+ poppler/Annot.h | 12 ++++++------
+ poppler/Form.h  |  6 +++---
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+commit 3db727f9546779a8896fc30a6669751d726ab86c
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Wed Jun 1 18:32:45 2016 +0200
+
+    Fix memory leak in RichMedia parsing
+
+ poppler/Annot.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 8ace48fb07b81cab6ae68dc23d173e7441ad6d2e
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Sun May 29 11:45:55 2016 +0200
+
+    SplashOutputDev: Fix iccTransform + splashModeXBGR8
+
+ poppler/SplashOutputDev.cc | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit 46039c2ef5b666d5ee85e7f6fc6a74a5a9e69526
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Fri May 27 11:06:01 2016 +0200
+
+    Add braces to make it more clear to which if the else applies
+
+ poppler/UnicodeTypeTable.cc | 21 ++++++++++++---------
+ 1 file changed, 12 insertions(+), 9 deletions(-)
+
+commit 2d72a8bfc87c9bdcea6b617ebd4b3a3684e174e8
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Thu May 26 17:59:21 2016 +0200
+
+    Initialize nConfigurations and nAssets
+
+ poppler/Annot.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 4e49b3af7d6f731b9da20a9d6e5aa54578f08d3f
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Thu May 26 17:34:56 2016 +0200
+
+    Fix memory leak on error on JBIG2Stream::readHalftoneRegionSeg
+
+ poppler/JBIG2Stream.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 5f51939eea5b98dcef115d18baec3179701d0292
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Tue May 24 23:34:48 2016 +0200
+
+    Fix stack overflow
+
+    Bug #96027
+
+ poppler/Stream.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c820826377d79438ecaf90e9b2106a8451585add
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Tue May 24 00:00:57 2016 +0200
+
+    Fix (C) year
+
+ utils/HtmlOutputDev.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9ce8dd7fbd132b5f423dc3bf10fa87b973390d0b
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Mon May 23 23:59:40 2016 +0200
+
+    Fix stack overflow on broken file
+
+    Bug #95567
+
+ poppler/Stream.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 37fb37e368c659832fc1a1dfd499c42340b62f38
+Author: Vincent Le Garrec <legarrec.vincent at gmail.com>
+Date:   Mon May 23 23:18:40 2016 +0200
+
+    pdftohtml: Fix crash on broken file
+
+    Bug #95563
+
+ utils/HtmlOutputDev.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 1d0251c8ab48e2e1a4873d84b4bc573b3ae2a98d
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Sat May 21 20:02:26 2016 +0200
+
+    Fix memory leak in Splash::gouraudTriangleShadedFill
+
+ splash/Splash.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit eb20f8cc2c0dea281ae44336a8fac8cc86a99895
+Author: Albert Astals Cid <aacid at kde.org>
+Date:   Sat May 21 19:19:43 2016 +0200
+
+    0.44
+
+ CMakeLists.txt      |  4 ++--
+ NEWS                | 16 ++++++++++++++++
+ configure.ac        |  2 +-
+ cpp/Doxyfile        |  2 +-
+ poppler/Makefile.am |  2 +-
+ qt4/src/Doxyfile    |  2 +-
+ qt5/src/Doxyfile    |  2 +-
+ 7 files changed, 23 insertions(+), 7 deletions(-)
+
 commit 58f56a7af99b477f39e57aed74443b6851afe15f
 Author: Thomas Freitag <Thomas.Freitag at alfa.de>
 Date:   Sat May 21 18:25:22 2016 +0200

Modified: trunk/Build/source/libs/poppler/poppler-src/ConfigureChecks.cmake
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/ConfigureChecks.cmake	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/ConfigureChecks.cmake	2016-06-17 23:37:11 UTC (rev 41475)
@@ -30,6 +30,7 @@
 check_function_exists(pread64 HAVE_PREAD64)
 check_function_exists(lseek64 HAVE_LSEEK64)
 check_function_exists(gmtime_r HAVE_GMTIME_R)
+check_function_exists(timegm HAVE_TIMEGM)
 check_function_exists(gettimeofday HAVE_GETTIMEOFDAY)
 check_function_exists(localtime_r HAVE_LOCALTIME_R)
 check_function_exists(popen HAVE_POPEN)

Modified: trunk/Build/source/libs/poppler/poppler-src/NEWS
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/NEWS	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/NEWS	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,3 +1,22 @@
+Release 0.45.0
+        core:
+         * SplashOutputDev: Fix iccTransform + splashModeXBGR8
+         * Fix memory leaks
+         * Fix crash in broken files. Bug #95567. Bug #96027
+         * Emulate some non portable glibc functions when not available
+
+        utils:
+         * pdftohtml: Fix crash in broken files. Bug #95563
+         * pdfinfo: convert dates to local time zone
+         * pdfinfo: add -isodates for printing dates in ISO-8601 format
+         * pdfinfo: Fix memory leaks
+
+        glib:
+         * return date in UTC instead of local time. Bug #94173
+
+        cpp:
+         * switched from detail::convert_date() to core's dateStringToTime()
+
 Release 0.44.0
         core:
          * Fix Compile in 32bit linux. Bug #95492

Modified: trunk/Build/source/libs/poppler/poppler-src/config.h.cmake
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/config.h.cmake	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/config.h.cmake	2016-06-17 23:37:11 UTC (rev 41475)
@@ -64,6 +64,9 @@
 /* Defines if gmtime_r is available on your system */
 #cmakedefine HAVE_GMTIME_R 1
 
+/* Defines if timegm is available on your system */
+#cmakedefine HAVE_TIMEGM 1
+
 /* Define if you have the iconv() function and it works. */
 #cmakedefine HAVE_ICONV 1
 

Modified: trunk/Build/source/libs/poppler/poppler-src/config.h.in
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/config.h.in	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/config.h.in	2016-06-17 23:37:11 UTC (rev 41475)
@@ -150,6 +150,9 @@
 /* Define to 1 if you have the <tiffio.h> header file. */
 #undef HAVE_TIFFIO_H
 
+/* Defines if timegm is available on your system */
+#undef HAVE_TIMEGM
+
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 

Modified: trunk/Build/source/libs/poppler/poppler-src/configure.ac
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/configure.ac	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/configure.ac	2016-06-17 23:37:11 UTC (rev 41475)
@@ -1,5 +1,5 @@
 m4_define([poppler_version_major],[0])
-m4_define([poppler_version_minor],[44])
+m4_define([poppler_version_minor],[45])
 m4_define([poppler_version_micro],[0])
 m4_define([poppler_version],[poppler_version_major.poppler_version_minor.poppler_version_micro])
 
@@ -178,6 +178,7 @@
 AC_CHECK_DECL(gettimeofday, [AC_CHECK_FUNC(gettimeofday, AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defines if gettimeofday is available on your system]))],[],[#include <sys/time.h>])
 AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system]))
 AC_CHECK_FUNC(gmtime_r, AC_DEFINE(HAVE_GMTIME_R, 1, [Defines if gmtime_r is available on your system]))
+AC_CHECK_FUNC(timegm, AC_DEFINE(HAVE_TIMEGM, 1, [Defines if timegm is available on your system]))
 AC_CHECK_FUNC(rand_r, AC_DEFINE(HAVE_RAND_R, 1, [Defines if rand_r is available on your system]))
 
 dnl ##### Check for extra libraries needed by X.  (LynxOS needs this.)

Modified: trunk/Build/source/libs/poppler/poppler-src/goo/Makefile.am
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/goo/Makefile.am	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/goo/Makefile.am	2016-06-17 23:37:11 UTC (rev 41475)
@@ -40,7 +40,8 @@
 	ImgWriter.cc				\
 	gtypes_p.h				\
 	gstrtod.cc				\
-	grandom.cc
+	grandom.cc                              \
+	glibc.cc
 
 if BUILD_LIBJPEG
 libjpeg_includes = $(LIBJPEG_CFLAGS)
@@ -64,3 +65,5 @@
 	$(libtiff_includes)                     \
 	$(libjpeg2000_includes)                 \
 	$(libpng_includes)
+
+EXTRA_DIST = glibc.h
\ No newline at end of file

Added: trunk/Build/source/libs/poppler/poppler-src/goo/glibc.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/goo/glibc.cc	                        (rev 0)
+++ trunk/Build/source/libs/poppler/poppler-src/goo/glibc.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -0,0 +1,58 @@
+//========================================================================
+//
+// glibc.h
+//
+// Emulate various non-portable glibc functions.
+//
+// This file is licensed under the GPLv2 or later
+//
+// Copyright (C) 2016 Adrian Johnson <ajohnson at redneon.com>
+//
+//========================================================================
+
+#include "glibc.h"
+
+#ifndef HAVE_GMTIME_R
+struct tm *gmtime_r(const time_t *timep, struct tm *result)
+{
+  struct tm *gt;
+  gt = gmtime(timep);
+  if (gt)
+    *result = *gt;
+  return gt;
+}
+#endif
+
+#ifndef HAVE_LOCALTIME_R
+struct tm *localtime_r(const time_t *timep, struct tm *result)
+{
+  struct tm *lt;
+  lt = localtime(timep);
+  *result = *lt;
+  return lt;
+}
+#endif
+
+#ifndef HAVE_TIMEGM
+// Get offset of local time from UTC in seconds. DST is ignored.
+static time_t getLocalTimeZoneOffset()
+{
+  time_t utc, local;
+  struct tm tm_utc;
+  time (&utc);
+  gmtime_r(&utc, &tm_utc);
+  local = mktime(&tm_utc);
+  return difftime(utc, local);
+}
+
+time_t timegm(struct tm *tm)
+{
+  tm->tm_isdst = 0;
+  time_t t = mktime(tm);
+  if (t == -1)
+    return t;
+
+  t += getLocalTimeZoneOffset();
+  return t;
+}
+#endif

Added: trunk/Build/source/libs/poppler/poppler-src/goo/glibc.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/goo/glibc.h	                        (rev 0)
+++ trunk/Build/source/libs/poppler/poppler-src/goo/glibc.h	2016-06-17 23:37:11 UTC (rev 41475)
@@ -0,0 +1,37 @@
+//========================================================================
+//
+// glibc.h
+//
+// Emulate various non-portable glibc functions.
+//
+// This file is licensed under the GPLv2 or later
+//
+// Copyright (C) 2016 Adrian Johnson <ajohnson at redneon.com>
+//
+//========================================================================
+
+#ifndef GLIBC_H
+#define GLIBC_H
+
+#include "config.h"
+
+#include <time.h>
+
+extern "C" {
+
+#ifndef HAVE_GMTIME_R
+struct tm *gmtime_r(const time_t *timep, struct tm *result);
+#endif
+
+#ifndef HAVE_LOCALTIME_R
+struct tm *localtime_r(const time_t *timep, struct tm *result);
+#endif
+
+#ifndef HAVE_TIMEGM
+time_t timegm(struct tm *tm);
+#endif
+
+};
+
+#endif // GLIBC_H
+


Property changes on: trunk/Build/source/libs/poppler/poppler-src/goo/glibc.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2006 Scott Turner <scotty1024 at mac.com>
 // Copyright (C) 2007, 2008 Julien Rebetez <julienr at svn.gnome.org>
-// Copyright (C) 2007-2013, 2015 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2007-2013, 2015, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2007-2013 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2007, 2008 Iñigo Martínez <inigomartinez at gmail.com>
 // Copyright (C) 2007 Jeff Muizelaar <jeff at infidigm.net>
@@ -6849,6 +6849,7 @@
       obj2.free();
     }
   } else {
+    nConfigurations = 0;
     configurations = NULL;
   }
   obj1.free();
@@ -6879,6 +6880,7 @@
     obj2.free();
 
   } else {
+    nAssets = 0;
     assets = NULL;
   }
   obj1.free();
@@ -7064,6 +7066,7 @@
   } else {
     params = NULL;
   }
+  obj1.free();
 }
 
 AnnotRichMedia::Instance::~Instance()

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.h	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Annot.h	2016-06-17 23:37:11 UTC (rev 41475)
@@ -21,7 +21,7 @@
 // Copyright (C) 2008 Hugo Mercier <hmercier31 at gmail.com>
 // Copyright (C) 2008 Pino Toscano <pino at kde.org>
 // Copyright (C) 2008 Tomas Are Haavet <tomasare at gmail.com>
-// Copyright (C) 2009-2011, 2013 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2009-2011, 2013, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2012, 2013 Fabio D'Urso <fabiodurso at hotmail.it>
 // Copyright (C) 2012, 2015 Tobias Koenig <tokoe at kdab.com>
 // Copyright (C) 2013 Thomas Freitag <Thomas.Freitag at alfa.de>
@@ -847,8 +847,8 @@
   GooString* getTitle() { return title; }
 
   AnnotAppearanceCharacs *getAppearCharacs() { return appearCharacs; }
-  LinkAction* getAction() { return action; }
-  LinkAction *getAdditionalAction(AdditionalActionsType type);
+  LinkAction* getAction() { return action; } // The caller should now delete the result
+  LinkAction *getAdditionalAction(AdditionalActionsType type); // The caller should delete the result
 
  private:
   void initialize(PDFDoc *docA, Dict *dict);
@@ -1322,9 +1322,9 @@
 
   AnnotWidgetHighlightMode getMode() { return mode; }
   AnnotAppearanceCharacs *getAppearCharacs() { return appearCharacs; }
-  LinkAction *getAction() { return action; }
-  LinkAction *getAdditionalAction(AdditionalActionsType type);
-  LinkAction *getFormAdditionalAction(FormAdditionalActionsType type);
+  LinkAction *getAction() { return action; }  // The caller should not delete the result
+  LinkAction *getAdditionalAction(AdditionalActionsType type); // The caller should delete the result
+  LinkAction *getFormAdditionalAction(FormAdditionalActionsType type); // The caller should delete the result
   Dict *getParent() { return parent; }
 
 private:

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -6,6 +6,7 @@
 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2015 André Guerreiro <aguerreiro1985 at gmail.com>
 // Copyright (C) 2015 André Esser <bepandre at hotmail.com>
+// Copyright (C) 2016 Adrian Johnson <ajohnson at redneon.com>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -22,6 +23,7 @@
 
 #include <config.h>
 
+#include "glibc.h"
 #include "DateInfo.h"
 
 #include <stdio.h>
@@ -74,7 +76,7 @@
    return gFalse;
 }
 
-
+// Convert time to PDF date string
 GooString *timeToDateString(time_t *timet) {
   GooString *dateString;
   char s[5];
@@ -81,13 +83,9 @@
   struct tm *gt;
   size_t len;
   time_t timep = timet ? *timet : time(NULL);
-  
-#ifdef HAVE_GMTIME_R
   struct tm t;
+
   gt = gmtime_r (&timep, &t);
-#else
-  gt = gmtime (&timep);
-#endif
 
   dateString = new GooString ("D:");
 
@@ -118,27 +116,35 @@
   return dateString;
 }
 
-time_t pdfTimeToInteger(GooString *time_str)
-{
+// Convert PDF date string to time. Returns -1 if conversion fails.
+time_t dateStringToTime(GooString *dateString) {
   int year, mon, day, hour, min, sec, tz_hour, tz_minute;
   char tz;
-  struct tm time_struct;
+  struct tm tm;
+  time_t time;
 
-  if (!parseDateString (time_str->getCString(), &year,
-        &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute))
-    return 0;
+  if (!parseDateString (dateString->getCString(), &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute))
+    return -1;
 
-  time_struct.tm_year = year - 1900;
-  time_struct.tm_mon = mon - 1;
-  time_struct.tm_mday = day;
-  time_struct.tm_hour = hour;
-  time_struct.tm_min = min;
-  time_struct.tm_sec = sec;
-  time_struct.tm_wday = -1;
-  time_struct.tm_yday = -1;
-  time_struct.tm_isdst = -1;
+  tm.tm_year = year - 1900;
+  tm.tm_mon = mon - 1;
+  tm.tm_mday = day;
+  tm.tm_hour = hour;
+  tm.tm_min = min;
+  tm.tm_sec = sec;
+  tm.tm_wday = -1;
+  tm.tm_yday = -1;
+  tm.tm_isdst = -1; /* 0 = DST off, 1 = DST on, -1 = don't know */
 
-  time_t unix_time = mktime(&time_struct);
+  /* compute tm_wday and tm_yday and check date */
+  time = timegm (&tm);
+  if (time == (time_t)-1)
+    return time;
 
-  return unix_time;
+  time_t offset = (tz_hour*60 + tz_minute)*60;
+  if (tz == '-')
+    offset *= -1;
+  time -= offset;
+
+  return time;
 }

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.h	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/DateInfo.h	2016-06-17 23:37:11 UTC (rev 41475)
@@ -6,6 +6,7 @@
 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2015 André Guerreiro <aguerreiro1985 at gmail.com>
 // Copyright (C) 2015 André Esser <bepandre at hotmail.com>
+// Copyright (C) 2016 Adrian Johnson <ajohnson at redneon.com>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -33,6 +34,10 @@
  * If timet is NULL, current time is used.
  */
 GooString *timeToDateString(time_t *timet);
-time_t pdfTimeToInteger(GooString *time_str);
 
+/* Convert PDF date string to time.
+ * Returns -1 if conversion fails.
+ */
+time_t dateStringToTime(GooString *dateString);
+
 #endif

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Form.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -7,7 +7,7 @@
 // Copyright 2006-2008 Julien Rebetez <julienr at svn.gnome.org>
 // Copyright 2007-2012, 2015, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright 2007-2008, 2011 Carlos Garcia Campos <carlosgc at gnome.org>
-// Copyright 2007, 2013 Adrian Johnson <ajohnson at redneon.com>
+// Copyright 2007, 2013, 2016 Adrian Johnson <ajohnson at redneon.com>
 // Copyright 2007 Iñigo Martínez <inigomartinez at gmail.com>
 // Copyright 2008, 2011 Pino Toscano <pino at kde.org>
 // Copyright 2008 Michael Vrable <mvrable at cs.ucsd.edu>
@@ -1421,7 +1421,7 @@
   sig_dict.dictLookup("M", &time_of_signing);
   if (time_of_signing.isString()) {
     GooString *time_str = time_of_signing.getString();
-    signature_info->setSigningTime(pdfTimeToInteger(time_str)); // Put this information directly in SignatureInfo object
+    signature_info->setSigningTime(dateStringToTime(time_str)); // Put this information directly in SignatureInfo object
     time_of_signing.free();
   }
 

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Form.h	2016-06-17 23:37:11 UTC (rev 41475)
@@ -6,7 +6,7 @@
 //
 // Copyright 2006 Julien Rebetez <julienr at svn.gnome.org>
 // Copyright 2007, 2008, 2011 Carlos Garcia Campos <carlosgc at gnome.org>
-// Copyright 2007-2010, 2012, 2015 Albert Astals Cid <aacid at kde.org>
+// Copyright 2007-2010, 2012, 2015, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright 2010 Mark Riedesel <mark at klowner.com>
 // Copyright 2011 Pino Toscano <pino at kde.org>
 // Copyright 2012 Fabio D'Urso <fabiodurso at hotmail.it>
@@ -106,8 +106,8 @@
 
   bool isReadOnly() const;
 
-  LinkAction *getActivationAction();
-  LinkAction *getAdditionalAction(Annot::FormAdditionalActionsType type);
+  LinkAction *getActivationAction(); // The caller should not delete the result
+  LinkAction *getAdditionalAction(Annot::FormAdditionalActionsType type); // The caller should delete the result
 
   // return the unique ID corresponding to pageNum/fieldNum
   static int encodeID (unsigned pageNum, unsigned fieldNum);

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/JBIG2Stream.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/JBIG2Stream.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/JBIG2Stream.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2006 Raj Kumar <rkumar at archive.org>
 // Copyright (C) 2006 Paul Walmsley <paul at booyaka.com>
-// Copyright (C) 2006-2010, 2012, 2014, 2015 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2006-2010, 2012, 2014-2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2009 David Benjamin <davidben at mit.edu>
 // Copyright (C) 2011 Edward Jiang <ejiang at google.com>
 // Copyright (C) 2012 William Bader <williambader at hotmail.com>
@@ -2770,6 +2770,9 @@
       if (!(enableSkip && skipBitmap->getPixel(n, m))) {
 	patternBitmap = patternDict->getBitmap(grayImg[i]);
 	if (unlikely(patternBitmap == NULL)) {
+	  delete skipBitmap;
+	  delete bitmap;
+	  gfree(grayImg);
 	  error(errSyntaxError, curStr->getPos(), "Bad pattern bitmap");
 	  return;
 	}

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Makefile.am
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Makefile.am	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Makefile.am	2016-06-17 23:37:11 UTC (rev 41475)
@@ -327,7 +327,7 @@
 	$(win32_libs)
 
 libpoppler_la_LDFLAGS =				\
-	-version-info 61:0:0			\
+	-version-info 62:0:0			\
 	@create_shared_lib@			\
 	@auto_import_flags@
 

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Page.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Page.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Page.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2005 Kristian Høgsberg <krh at redhat.com>
 // Copyright (C) 2005 Jeff Muizelaar <jeff at infidigm.net>
-// Copyright (C) 2005-2013 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2013, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2006-2008 Pino Toscano <pino at kde.org>
 // Copyright (C) 2006 Nickolay V. Shmyrev <nshmyrev at yandex.ru>
 // Copyright (C) 2006 Scott Turner <scotty1024 at mac.com>
@@ -325,6 +325,7 @@
   if (!(thumb.isStream() || thumb.isNull() || thumb.isRef())) {
       error(errSyntaxError, -1, "Page thumb object (page {0:d}) is wrong type ({1:s})",
             num, thumb.getTypeName());
+      thumb.free();
       thumb.initNull(); 
   }
 
@@ -333,6 +334,7 @@
   if (!(actions.isDict() || actions.isNull())) {
       error(errSyntaxError, -1, "Page additional action object (page {0:d}) is wrong type ({1:s})",
             num, actions.getTypeName());
+      actions.free();
       actions.initNull();
   }
   

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/SplashOutputDev.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/SplashOutputDev.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/SplashOutputDev.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -3278,17 +3278,17 @@
       Guchar *q;
       Guchar *b = p;
       int x;
-      for (x = 0, q = rgbxLine; x < bitmap->getWidth(); ++x, ++b) {
-        *q++ = *b++;
-        *q++ = *b++;
-        *q++ = *b++;
+      for (x = 0, q = rgbxLine; x < bitmap->getWidth(); ++x, b+=4) {
+        *q++ = b[2];
+        *q++ = b[1];
+        *q++ = b[0];
       }
       imgData->colorMap->getRGBLine(rgbxLine, colorLine, bitmap->getWidth());
       b = p;
-      for (x = 0, q = colorLine; x < bitmap->getWidth(); ++x, ++b) {
-        *b++ = *q++;
-        *b++ = *q++;
-        *b++ = *q++;
+      for (x = 0, q = colorLine; x < bitmap->getWidth(); ++x, b+=4) {
+        b[2] = *q++;
+        b[1] = *q++;
+        b[0] = *q++;
       }
       break;
     }

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/Stream.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/Stream.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/Stream.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2005 Jeff Muizelaar <jeff at infidigm.net>
-// Copyright (C) 2006-2010, 2012-2014 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2006-2010, 2012-2014, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk at gmail.com>
 // Copyright (C) 2008 Julien Rebetez <julien at fhtagn.net>
 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc at gnome.org>
@@ -178,12 +178,12 @@
   dict->dictLookup("Filter", &obj, recursion);
   if (obj.isNull()) {
     obj.free();
-    dict->dictLookup("F", &obj);
+    dict->dictLookup("F", &obj, recursion);
   }
   dict->dictLookup("DecodeParms", &params, recursion);
   if (params.isNull()) {
     params.free();
-    dict->dictLookup("DP", &params);
+    dict->dictLookup("DP", &params, recursion);
   }
   if (obj.isName()) {
     str = makeFilter(obj.getName(), str, &params, recursion, dict);

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/UTF.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/UTF.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/UTF.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -16,6 +16,7 @@
 // Copyright (C) 2008 Koji Otani <sho at bbr.jp>
 // Copyright (C) 2012 Adrian Johnson <ajohnson at redneon.com>
 // Copyright (C) 2012 Hib Eris <hib at hiberis.nl>
+// Copyright (C) 2016 Albert Astals Cid <aacid at kde.org>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -89,8 +90,10 @@
 
   len = textStr->getLength();
   s = textStr->getCString();
-  if (len == 0)
+  if (len == 0) {
+    *ucs4 = 0;
     return 0;
+  }
 
   if (textStr->hasUnicodeMarker()) {
     Unicode *utf16;

Modified: trunk/Build/source/libs/poppler/poppler-src/poppler/UnicodeTypeTable.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/poppler/UnicodeTypeTable.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/poppler/UnicodeTypeTable.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2006, 2007 Ed Catmur <ed at catmur.co.uk>
 // Copyright (C) 2007 Jeff Muizelaar <jeff at infidigm.net>
-// Copyright (C) 2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2012 Adrian Johnson <ajohnson at redneon.com>
 // Copyright (C) 2016 Khaled Hosny <khaledhosny at eglug.org>
 //
@@ -1028,16 +1028,19 @@
       int midpoint = (start + end) / 2;
       if (u == decomp_table[midpoint].character) {
 	int offset = decomp_table[midpoint].offset;
-	if (offset == -1)
+	if (offset == -1) {
 	  break;
-	else {
+	} else {
 	  int length = decomp_table[midpoint].length, i;
-	  if (buf)
-	    for (i = 0; i < length; ++i)
-		if (unicodeTypeR(u) && reverseRTL)
-		  buf[i] = decomp_expansion[offset + length - i - 1];
-		else
-		  buf[i] = decomp_expansion[offset + i];
+	  if (buf) {
+	    for (i = 0; i < length; ++i) {
+	      if (unicodeTypeR(u) && reverseRTL) {
+		buf[i] = decomp_expansion[offset + length - i - 1];
+	      } else {
+		buf[i] = decomp_expansion[offset + i];
+	      }
+	    }
+	  }
 	  return length;
 	}
       } else if (midpoint == start)

Modified: trunk/Build/source/libs/poppler/poppler-src/splash/Splash.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/splash/Splash.cc	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/poppler-src/splash/Splash.cc	2016-06-17 23:37:11 UTC (rev 41475)
@@ -11,7 +11,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2005-2015 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
 // Copyright (C) 2010-2016 Thomas Freitag <Thomas.Freitag at alfa.de>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
@@ -5768,6 +5768,9 @@
       }
     }
   } else {
+    if (!bDirectBlit) {
+      delete blitTarget;
+    }
     return gFalse;
   }
 

Modified: trunk/Build/source/libs/poppler/version.ac
===================================================================
--- trunk/Build/source/libs/poppler/version.ac	2016-06-17 22:17:02 UTC (rev 41474)
+++ trunk/Build/source/libs/poppler/version.ac	2016-06-17 23:37:11 UTC (rev 41475)
@@ -8,4 +8,4 @@
 dnl --------------------------------------------------------
 dnl
 dnl  m4-include this file to define the current poppler version
-m4_define([poppler_version], [0.44.0])
+m4_define([poppler_version], [0.45.0])



More information about the tex-live-commits mailing list