]> git.pld-linux.org Git - packages/xpdf.git/commitdiff
- updated to 2.01 with official security patch (pdfto* can be used as filters)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 26 Dec 2002 17:45:55 +0000 (17:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added nonumericlocale patch to avoid SEGV caused by LC_NUMERIC with ',' as
  decimal point
- STBR to ra/updates/security

Changed files:
    xpdf-nonumericlocale.patch -> 1.1
    xpdf.spec -> 1.59

xpdf-nonumericlocale.patch [new file with mode: 0644]
xpdf.spec

diff --git a/xpdf-nonumericlocale.patch b/xpdf-nonumericlocale.patch
new file mode 100644 (file)
index 0000000..35fa3b9
--- /dev/null
@@ -0,0 +1,65 @@
+--- xpdf-2.01/xpdf/FontFile.cc.orig    Fri Dec  6 00:44:32 2002
++++ xpdf-2.01/xpdf/FontFile.cc Thu Dec 26 18:38:36 2002
+@@ -18,6 +18,7 @@
+ #include <stdarg.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <locale.h>
+ #include "gmem.h"
+ #include "Error.h"
+ #include "GlobalParams.h"
+@@ -358,6 +359,10 @@
+   int c, sid;
+   int i, j, n;
++  /* LC_NUMERIC from environment may cause writing "," as decimal dot
++   * when creating temporary fonts, leading to SEGV when trying to use them */
++  setlocale(LC_NUMERIC, "C");
++
+   outputFunc = outputFuncA;
+   outputStream = outputStreamA;
+@@ -614,6 +619,10 @@
+   GBool isFP;
+   int i, j, k, n;
++  /* LC_NUMERIC from environment may cause writing "," as decimal dot
++   * when creating temporary fonts, leading to SEGV when trying to use them */
++  setlocale(LC_NUMERIC, "C");
++
+   outputFunc = outputFuncA;
+   outputStream = outputStreamA;
+@@ -901,6 +910,10 @@
+   GBool isFP;
+   int i, j, n;
++  /* LC_NUMERIC from environment may cause writing "," as decimal dot
++   * when creating temporary fonts, leading to SEGV when trying to use them */
++  setlocale(LC_NUMERIC, "C");
++
+   outputFunc = outputFuncA;
+   outputStream = outputStreamA;
+@@ -2881,6 +2894,10 @@
+                                      void *outputStream) {
+   char buf[512];
++  /* LC_NUMERIC from environment may cause writing "," as decimal dot
++   * when creating temporary fonts, leading to SEGV when trying to use them */
++  setlocale(LC_NUMERIC, "C");
++
+   // write the header
+   sprintf(buf, "%%!PS-TrueTypeFont-%g\n", getFixed(0));
+   (*outputFunc)(outputStream, buf, strlen(buf));
+@@ -2915,6 +2932,10 @@
+   Gushort cid;
+   int i, j, k;
++  /* LC_NUMERIC from environment may cause writing "," as decimal dot
++   * when creating temporary fonts, leading to SEGV when trying to use them */
++  setlocale(LC_NUMERIC, "C");
++
+   // write the header
+   sprintf(buf, "%%!PS-TrueTypeFont-%g\n", getFixed(0));
+   (*outputFunc)(outputStream, buf, strlen(buf));
index f5e6ddf5c42224ec081cb677fef6c87e8477e5f7..95cd9a3e507b026b1b6f66957e4cebae2c5bfc60 100644 (file)
--- a/xpdf.spec
+++ b/xpdf.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _without_protections - remove protections for printing and copying
+# _without_protections - remove protections against fair use (printing and copying)
 #
 Summary:       Portable Document Format (PDF) file viewer
 Summary(es):   Visualizador de archivos PDF
@@ -10,8 +10,8 @@ Summary(pt_BR):       Visualizador de arquivos PDF
 Summary(ru):   ðÒÏÇÒÁÍÍÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ PDF ÆÁÊÌÏ×
 Summary(uk):   ðÒÏÇÒÁÍÁ ÄÌÑ ÐÅÒÅÇÌÑÄÕ PDF ÆÁÊ̦×
 Name:          xpdf
-Version:       2.00
-Release:       3
+Version:       2.01
+Release:       1
 License:       GPL
 Group:         X11/Applications
 Source0:       ftp://ftp.foolabs.com/pub/xpdf/%{name}-%{version}.tar.gz
@@ -19,6 +19,9 @@ Source1:      %{name}.desktop
 Source2:       %{name}.png
 Source3:       %{name}rc
 Patch0:                %{name}-remove_protections.patch
+# official security fix
+Patch1:                ftp://ftp.foolabs.com/pub/xpdf/xpdf-2.01-patch1
+Patch2:                %{name}-nonumericlocale.patch
 URL:           http://www.foolabs.com/xpdf/
 Icon:          xpdfIcon.gif
 BuildRequires: XFree86-devel
@@ -82,6 +85,9 @@ Format (PDF). 
 %prep
 %setup -q
 %{?_without_protections:%patch0 -p1}
+%patch2 -p1
+cd xpdf
+%patch1 -p0
 
 %build
 CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti"
This page took 0.038991 seconds and 4 git commands to generate.