Skip to content

Commit

Permalink
Internal libtiff: resync with libtiff CVS HEAD. Fix crashing bug with…
Browse files Browse the repository at this point in the history
… corrupted image generated by afl

git-svn-id: https://svn.osgeo.org/gdal/trunk@28198 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
rouault committed Dec 23, 2014
1 parent 7f77d86 commit 1f0d59a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gdal/frmts/gtiff/libtiff/tif_dirread.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: tif_dirread.c,v 1.181 2014-12-21 15:15:31 erouault Exp $ */
/* $Id: tif_dirread.c,v 1.182 2014-12-23 11:06:54 erouault Exp $ */

/*
* Copyright (c) 1988-1997 Sam Leffler
Expand Down Expand Up @@ -4295,7 +4295,8 @@ EstimateStripByteCounts(TIFF* tif, TIFFDirEntry* dir, uint16 dircount)
TIFFDirectory *td = &tif->tif_dir;
uint32 strip;

_TIFFFillStriles( tif );
if( !_TIFFFillStriles( tif ) )
return -1;

if (td->td_stripbytecount)
_TIFFfree(td->td_stripbytecount);
Expand Down

0 comments on commit 1f0d59a

Please sign in to comment.