tif_dirread.c: Fixed problem with bogus file triggering assert in ChopUpSingleUncompressedStrip
This commit is contained in:
parent
7497b6e5f3
commit
1a5dfd2205
@ -1,3 +1,9 @@
|
|||||||
|
2007-10-24 Joris Van Damme <joris.at.lebbeke@skynet.be>
|
||||||
|
|
||||||
|
* tif_dirread.c: Fixed problem with bogus file triggering
|
||||||
|
assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
|
||||||
|
ChopUpSingleUncompressedStrip
|
||||||
|
|
||||||
2007-10-22 Joris Van Damme <joris.at.lebbeke@skynet.be>
|
2007-10-22 Joris Van Damme <joris.at.lebbeke@skynet.be>
|
||||||
|
|
||||||
* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
|
* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tif_dirread.c,v 1.134 2007-09-29 10:34:38 joris Exp $ */
|
/* $Id: tif_dirread.c,v 1.135 2007-10-24 10:20:23 joris Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988-1997 Sam Leffler
|
* Copyright (c) 1988-1997 Sam Leffler
|
||||||
@ -3868,8 +3868,10 @@ TIFFReadDirectory(TIFF* tif)
|
|||||||
* side effect, however, is that the RowsPerStrip tag
|
* side effect, however, is that the RowsPerStrip tag
|
||||||
* value may be changed.
|
* value may be changed.
|
||||||
*/
|
*/
|
||||||
if (tif->tif_dir.td_nstrips == 1 && tif->tif_dir.td_compression == COMPRESSION_NONE &&
|
if ((tif->tif_dir.td_planarconfig==PLANARCONFIG_CONTIG)&&
|
||||||
(tif->tif_flags & (TIFF_STRIPCHOP|TIFF_ISTILED)) == TIFF_STRIPCHOP)
|
(tif->tif_dir.td_nstrips==1)&&
|
||||||
|
(tif->tif_dir.td_compression==COMPRESSION_NONE)&&
|
||||||
|
((tif->tif_flags&(TIFF_STRIPCHOP|TIFF_ISTILED))==TIFF_STRIPCHOP))
|
||||||
ChopUpSingleUncompressedStrip(tif);
|
ChopUpSingleUncompressedStrip(tif);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user