netpbm/netpbm-gcc-warnings.patch
Petr Gajdos 01861b371c - updated to 10.85.00
* pnmpaste: Add -nand, -nor, and -nxor.
  * pamcut: add -cropleft, -cropright, -croptop, -cropbottom.
  * ppmtobmp: respect -bpp with PBM input.
  * bmptopnm: allow single color colormap with bpp 1.
  * bmptopnm: validate plane count = 1.
  * bmptopnm: Add RLE4 compression decoding.  This was ostensibly
    added in Netpbm 10.32 (February 2006), but never worked.
  * Add pammixmulti.  Thanks Scott Pakin (scott+pbm@pakin.org).
  * pamtotga: Add -cmap16 .
  * pamtris: Add -rgb, -grayscale.  Add w parameter to vertex
    instructions.  Fix perspective correctness.  Thanks Lucas Brunno
    Luna <lucaslunar32@hotmail.com>.
  * picttoppm: accept rectangle specifications in input that have
    the corners in any order, not just upper left, then lower right.
  * pamtotga: identify compressed colormapped format in error
    message saying the program doesn't know how to interpret it.
  * pamtotga: Ignore extra planes in black and white or grayscale
    input instead of generating junk output.
  * bmptopnm: Fix wrong output for non-colormapped OS2 BMP.  Broken
    in Netpbm 10.18 (September 2003).
  * bmptopnm: Fix array bounds violation when index value in raster
    is too big.  Broken after Netpbm 10.11 (October 2002) but before
    10.19 (November 2003).
- modified patches
  * netpbm-gcc-warnings.patch
  * netpbm-security-code.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=97
2018-12-31 17:20:28 +00:00

47 lines
1.5 KiB
Diff

Index: netpbm-10.85.0/converter/other/pngx.c
===================================================================
--- netpbm-10.85.0.orig/converter/other/pngx.c 2018-12-31 16:41:07.134118718 +0100
+++ netpbm-10.85.0/converter/other/pngx.c 2018-12-31 17:50:20.646020442 +0100
@@ -366,6 +366,7 @@ pngx_srgbIntentDesc(pngx_srgbIntent cons
case PNGX_ABSOLUTE_COLORIMETRIC: return "ABSOLUTE_COLORIMETRIC";
}
assert(false);
+ return NULL;
}
@@ -381,6 +382,7 @@ const libpngSrgbIntentCode(pngx_srgbInte
}
assert(false); /* All cases above return */
+ return -1;
}
Index: netpbm-10.85.0/editor/pbmreduce.c
===================================================================
--- netpbm-10.85.0.orig/editor/pbmreduce.c 2018-12-31 17:50:20.618020308 +0100
+++ netpbm-10.85.0/editor/pbmreduce.c 2018-12-31 17:50:20.646020442 +0100
@@ -202,6 +202,9 @@ oppositeDir(enum Direction const arg) {
case RIGHT_TO_LEFT: return LEFT_TO_RIGHT;
}
assert(false); /* All cases handled above */
+
+ /* make gcc happy */
+ return RIGHT_TO_LEFT;
}
Index: netpbm-10.85.0/lib/libpm.c
===================================================================
--- netpbm-10.85.0.orig/lib/libpm.c 2018-12-31 17:50:20.622020327 +0100
+++ netpbm-10.85.0/lib/libpm.c 2018-12-31 17:51:40.886403785 +0100
@@ -440,6 +440,7 @@ pm_maxvaltobits(int const maxval) {
pm_error( "maxval of %d is too large!", maxval );
assert(false);
+ return 0;
}
int