Accepting request 942809 from home:Andreas_Schwab:Factory

- signed-char.patch: fix bad use of plain char

OBS-URL: https://build.opensuse.org/request/show/942809
OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=129
This commit is contained in:
Pedro Monreal Gonzalez 2021-12-27 17:31:35 +00:00 committed by Git OBS Bridge
parent 858b8422cb
commit 8fae02f657
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Dec 19 17:47:53 UTC 2021 - Andreas Schwab <schwab@suse.de>
- signed-char.patch: fix bad use of plain char
-------------------------------------------------------------------
Mon Dec 13 12:32:18 UTC 2021 - pgajdos@suse.com

View File

@ -41,6 +41,8 @@ Patch2: %{name}-security-code.patch
Patch3: %{name}-security-scripts.patch
Patch4: %{name}-gcc-warnings.patch
Patch5: makeman-py3.patch
# PATCH-FIX-UPSTREAM fix bad use of plain char
Patch6: signed-char.patch
# PATCH-FIX-UPSTREAM fix dependency on byte order
Patch7: big-endian.patch
# bsc#1144255 disable jpeg2k support due to removal of jasper

13
signed-char.patch Normal file
View File

@ -0,0 +1,13 @@
Index: netpbm-10.96.4/converter/other/pnmtopalm/palmtopnm.c
===================================================================
--- netpbm-10.96.4.orig/converter/other/pnmtopalm/palmtopnm.c
+++ netpbm-10.96.4/converter/other/pnmtopalm/palmtopnm.c
@@ -873,7 +873,7 @@ readPackBitsRow(FILE * const if
pm_readcharu(ifP, &incountByte);
if (incountByte & 0x80) {
/* How do we handle incount == -128 ? */
- int const signedIncount = (char)incountByte;
+ int const signedIncount = (signed char)incountByte;
unsigned int const runlength = -signedIncount + 1;
unsigned char inval;
pm_readcharu(ifP, &inval);