* tools/tiffcrop.c: Fix memory leak in (recent) error code path.
Fixes Coverity 1394415.
This commit is contained in:
parent
2c81e2ffa9
commit
c80c06ce45
@ -1,3 +1,8 @@
|
|||||||
|
2016-11-18 Even Rouault <even.rouault at spatialys.com>
|
||||||
|
|
||||||
|
* tools/tiffcrop.c: Fix memory leak in (recent) error code path.
|
||||||
|
Fixes Coverity 1394415.
|
||||||
|
|
||||||
2016-11-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
2016-11-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||||
|
|
||||||
* libtiff/tif_getimage.c: Fix some benign warnings which appear in
|
* libtiff/tif_getimage.c: Fix some benign warnings which appear in
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tiffcrop.c,v 1.45 2016-11-12 19:57:16 bfriesen Exp $ */
|
/* $Id: tiffcrop.c,v 1.46 2016-11-18 14:58:46 erouault Exp $ */
|
||||||
|
|
||||||
/* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of
|
/* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of
|
||||||
* the image data through additional options listed below
|
* the image data through additional options listed below
|
||||||
@ -1349,6 +1349,7 @@ static int writeBufferToSeparateTiles (TIFF* out, uint8* buf, uint32 imagelength
|
|||||||
{
|
{
|
||||||
TIFFError(TIFFFileName(out),
|
TIFFError(TIFFFileName(out),
|
||||||
"Error, uint32 overflow when computing (imagewidth * bps * spp) + 7");
|
"Error, uint32 overflow when computing (imagewidth * bps * spp) + 7");
|
||||||
|
_TIFFfree(obuf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
src_rowsize = ((imagewidth * spp * bps) + 7U) / 8;
|
src_rowsize = ((imagewidth * spp * bps) + 7U) / 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user