* tools/gif2tiff.c: fix buffer overrun
http://bugzilla.maptools.org/show_bug.cgi?id=2270
This commit is contained in:
parent
7a01aa5d24
commit
cb405082bb
@ -1,4 +1,9 @@
|
||||
2010-12-13 Lee Howard <faxguy@howardsilvan.com>
|
||||
2010-12-14 Lee Howard <faxguy@howardsilvan.com>
|
||||
|
||||
* tools/gif2tiff.c: fix buffer overrun
|
||||
http://bugzilla.maptools.org/show_bug.cgi?id=2270
|
||||
|
||||
2010-12-14 Lee Howard <faxguy@howardsilvan.com>
|
||||
|
||||
* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
|
||||
to improve compatibility with various viewers
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: gif2tiff.c,v 1.11 2010-03-10 18:56:49 bfriesen Exp $ */
|
||||
/* $Id: gif2tiff.c,v 1.12 2010-12-15 00:22:44 faxguy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990-1997 Sam Leffler
|
||||
@ -507,6 +507,10 @@ rasterize(int interleaved, char* mode)
|
||||
strip = 0;
|
||||
stripsize = TIFFStripSize(tif);
|
||||
for (row=0; row<height; row += rowsperstrip) {
|
||||
if (rowsperstrip > height-row) {
|
||||
rowsperstrip = height-row;
|
||||
stripsize = TIFFVStripSize(tif, rowsperstrip);
|
||||
}
|
||||
if (TIFFWriteEncodedStrip(tif, strip, newras+row*width, stripsize) < 0)
|
||||
break;
|
||||
strip++;
|
||||
|
Loading…
Reference in New Issue
Block a user