* libtiff/tif_dirwrite.c: replace assertion related to not finding the
SubIFD tag by runtime check. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727 Reported by team OWL337
This commit is contained in:
parent
8ad1c70dc1
commit
4958e19fae
@ -1,3 +1,10 @@
|
|||||||
|
2017-08-23 Even Rouault <even.rouault at spatialys.com>
|
||||||
|
|
||||||
|
* libtiff/tif_dirwrite.c: replace assertion related to not finding the
|
||||||
|
SubIFD tag by runtime check.
|
||||||
|
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727
|
||||||
|
Reported by team OWL337
|
||||||
|
|
||||||
2017-07-24 Even Rouault <even.rouault at spatialys.com>
|
2017-07-24 Even Rouault <even.rouault at spatialys.com>
|
||||||
|
|
||||||
* libtiff/tif_luv.c: further reduce memory requirements for temporary
|
* libtiff/tif_luv.c: further reduce memory requirements for temporary
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tif_dirwrite.c,v 1.87 2017-06-30 17:31:45 erouault Exp $ */
|
/* $Id: tif_dirwrite.c,v 1.88 2017-08-23 13:21:42 erouault Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988-1997 Sam Leffler
|
* Copyright (c) 1988-1997 Sam Leffler
|
||||||
@ -821,7 +821,12 @@ TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff)
|
|||||||
TIFFDirEntry* nb;
|
TIFFDirEntry* nb;
|
||||||
for (na=0, nb=dir; ; na++, nb++)
|
for (na=0, nb=dir; ; na++, nb++)
|
||||||
{
|
{
|
||||||
assert(na<ndir);
|
if( na == ndir )
|
||||||
|
{
|
||||||
|
TIFFErrorExt(tif->tif_clientdata,module,
|
||||||
|
"Cannot find SubIFD tag");
|
||||||
|
goto bad;
|
||||||
|
}
|
||||||
if (nb->tdir_tag==TIFFTAG_SUBIFD)
|
if (nb->tdir_tag==TIFFTAG_SUBIFD)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user