[packages/ghostpdl] - fix for intptr_t/size_t/int64_t use inconsistency; release 2

qboosh qboosh at pld-linux.org
Mon Sep 29 21:28:44 CEST 2025


commit 7ba07c31a92093e8a4f2df3a886ffb5c423bfaa1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 29 21:31:45 2025 +0200

    - fix for intptr_t/size_t/int64_t use inconsistency; release 2

 ghostpdl-types.patch | 26 ++++++++++++++++++++++++++
 ghostpdl.spec        |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/ghostpdl.spec b/ghostpdl.spec
index 0dfea54..401250e 100644
--- a/ghostpdl.spec
+++ b/ghostpdl.spec
@@ -14,7 +14,7 @@ Summary:	PostScript, PDF and XPS interpreter and renderer
 Summary(pl.UTF-8):	Interpreter i renderer PostScriptu, PDF oraz XPS
 Name:		ghostpdl
 Version:	10.06.0
-Release:	1
+Release:	2
 License:	AGPL v3+
 Group:		Applications/Graphics
 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
@@ -23,6 +23,7 @@ Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download
 Patch0:		%{name}-fonts_locations.patch
 Patch1:		%{name}-make.patch
 Patch2:		%{name}-system-libs.patch
+Patch3:		%{name}-types.patch
 URL:		https://ghostscript.com/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	cups-devel >= 1.5
@@ -114,6 +115,7 @@ oparciu o Ghostscript.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 # use system libs:
diff --git a/ghostpdl-types.patch b/ghostpdl-types.patch
new file mode 100644
index 0000000..a8ba413
--- /dev/null
+++ b/ghostpdl-types.patch
@@ -0,0 +1,26 @@
+--- ghostscript-10.06.0/base/gdevmpla.c.orig	2025-09-09 11:36:39.000000000 +0200
++++ ghostscript-10.06.0/base/gdevmpla.c	2025-09-29 19:32:03.738045387 +0200
+@@ -1954,12 +1954,12 @@ mem_planar_strip_copy_rop2(gx_device * d
+         int i;
+         int j;
+         intptr_t chunky_sraster;
+-        intptr_t nbytes;
++        int64_t nbytes;
+         byte **line_ptrs;
+         byte *sbuf, *buf;
+ 
+         chunky_sraster = sraster * (intptr_t)mdev->num_planar_planes;
+-        if (check_64bit_multiply(height, chunky_sraster, (size_t *)&nbytes) != 0)
++        if (check_64bit_multiply(height, chunky_sraster, &nbytes) != 0)
+             return gs_note_error(gs_error_undefinedresult);
+         buf = gs_alloc_bytes(mdev->memory, nbytes, "mem_planar_strip_copy_rop(buf)");
+         if (buf == NULL) {
+@@ -2003,7 +2003,7 @@ mem_planar_strip_copy_rop2(gx_device * d
+         intptr_t i;
+         intptr_t chunky_t_raster;
+         int chunky_t_height;
+-        intptr_t nbytes;
++        int64_t nbytes;
+         byte **line_ptrs;
+         byte *tbuf, *buf;
+         gx_strip_bitmap newtex;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostpdl.git/commitdiff/7ba07c31a92093e8a4f2df3a886ffb5c423bfaa1



More information about the pld-cvs-commit mailing list