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

qboosh qboosh at pld-linux.org
Mon Sep 29 20:10:10 CEST 2025


commit bcf284b5d7672ac0b7e06f4093b87c89ffb0fd43
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 29 20:13:10 2025 +0200

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

 ghostscript-types.patch | 26 ++++++++++++++++++++++++++
 ghostscript.spec        |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/ghostscript.spec b/ghostscript.spec
index 91c7870..837e485 100644
--- a/ghostscript.spec
+++ b/ghostscript.spec
@@ -22,7 +22,7 @@ Summary(pl.UTF-8):	Bezpłatny interpreter i renderer PostScriptu i PDF
 Summary(tr.UTF-8):	PostScript & PDF yorumlayıcı ve gösterici
 Name:		ghostscript
 Version:	10.06.0
-Release:	1
+Release:	2
 License:	AGPL v3+
 Group:		Applications/Graphics
 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
@@ -33,6 +33,7 @@ Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-ma
 Patch0:		%{name}-missquotes.patch
 Patch1:		%{name}-a4.patch
 Patch2:		ijs-pkgconfig.patch
+Patch3:		%{name}-types.patch
 Patch6:		%{name}-gdevcd8-fixes.patch
 
 # fedora
@@ -217,6 +218,7 @@ Statyczna wersja biblioteki IJS.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %patch -P6 -p1
 
diff --git a/ghostscript-types.patch b/ghostscript-types.patch
new file mode 100644
index 0000000..a8ba413
--- /dev/null
+++ b/ghostscript-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/ghostscript.git/commitdiff/bcf284b5d7672ac0b7e06f4093b87c89ffb0fd43



More information about the pld-cvs-commit mailing list