[packages/ghostpdl] up to 10.03.1

atler atler at pld-linux.org
Mon Jul 15 19:27:16 CEST 2024


commit 8e50fd69808ab3f5f29e13dc93e3fd55ba6e6b84
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 15 19:05:37 2024 +0200

    up to 10.03.1

 ghostpdl.spec |  8 +++++---
 pdf_sec.patch | 29 +++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/ghostpdl.spec b/ghostpdl.spec
index db3a2ee..464717a 100644
--- a/ghostpdl.spec
+++ b/ghostpdl.spec
@@ -12,16 +12,17 @@
 Summary:	PostScript, PDF and XPS interpreter and renderer
 Summary(pl.UTF-8):	Interpreter i renderer PostScriptu, PDF oraz XPS
 Name:		ghostpdl
-Version:	10.02.0
+Version:	10.03.1
 Release:	1
 License:	AGPL v3+
 Group:		Applications/Graphics
 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10020/%{name}-%{version}.tar.xz
-# Source0-md5:	536189cdacb3f0db3f55c4075255ce3a
+Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10031/%{name}-%{version}.tar.xz
+# Source0-md5:	e4a9e4b838149cf83309125e80df4c56
 Patch0:		%{name}-fonts_locations.patch
 Patch1:		%{name}-make.patch
 Patch2:		%{name}-system-libs.patch
+Patch3:		pdf_sec.patch
 URL:		https://ghostscript.com/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	cups-devel >= 1.5
@@ -110,6 +111,7 @@ oparciu o Ghostscript.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 # use system libs:
diff --git a/pdf_sec.patch b/pdf_sec.patch
new file mode 100644
index 0000000..057be09
--- /dev/null
+++ b/pdf_sec.patch
@@ -0,0 +1,29 @@
+From 90cabe08422afdd16bac5dd9217602679d943045 Mon Sep 17 00:00:00 2001
+From: Ken Sharp <Ken.Sharp at artifex.com>
+Date: Fri, 8 Mar 2024 09:19:05 +0000
+Subject: [PATCH] Bug #707649 - fix apply_sasl in error cases.
+
+Forgot to dereference the pointers before assigning the values, if we
+get non-fatal errors returned from stringprep.
+---
+ pdf/pdf_sec.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c
+index 565ae80ca..7e8f6719d 100644
+--- a/pdf/pdf_sec.c
++++ b/pdf/pdf_sec.c
+@@ -183,8 +183,8 @@ static int apply_sasl(pdf_context *ctx, char *Password, int Len, char **NewPassw
+          * this easy: the errors we want to ignore are the ones with
+          * codes less than 100. */
+         if ((int)err < 100) {
+-            NewPassword = Password;
+-            NewLen = Len;
++            *NewPassword = Password;
++            *NewLen = Len;
+             return 0;
+         }
+ 
+-- 
+2.34.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostpdl.git/commitdiff/8e50fd69808ab3f5f29e13dc93e3fd55ba6e6b84



More information about the pld-cvs-commit mailing list