netpbm/netpbm-10.22-cmapsize.patch
cvsdist fc3c96cb76 auto-import changelog data from netpbm-10.22-2.src.rpm
Fri Jul 02 2004 Phil Knirsch <pknirsch@redhat.com> 10.22-2
- Fixed Zero byte allocation error in bmptopnm (#123169)
- Honour the $TMPDIR in ppmfade (#117247)
- Fixed nested function bug (#117377)
- Fixed several uninitialized variables (#117377)
2004-09-09 09:17:31 +00:00

11 lines
465 B
Diff

--- netpbm-10.22/converter/other/bmptopnm.c.cmapsize 2004-07-02 17:59:51.799270546 +0200
+++ netpbm-10.22/converter/other/bmptopnm.c 2004-07-02 18:03:16.995978954 +0200
@@ -962,6 +962,7 @@
, BMPoffbits(BMPheader.class, BMPheader.cBitCount,
BMPheader.cmapsize));
}
+ if(BMPheader.cmapsize != 0)
{
unsigned int bytesRead;
BMPreadcolormap(ifP, BMPheader.cBitCount, BMPheader.class,