forked from pool/netpbm
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:
parent
858b8422cb
commit
8fae02f657
@ -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
|
||||
|
||||
|
@ -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
13
signed-char.patch
Normal 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);
|
Loading…
Reference in New Issue
Block a user