(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead

code"
This commit is contained in:
Bob Friesenhahn 2015-05-31 21:09:33 +00:00
parent 6132637692
commit cf2cbabef1
2 changed files with 3 additions and 6 deletions

View File

@ -6,6 +6,8 @@
code".
(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
code".
(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
code"
* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
operator precedenc in evaluation. Might quench Coverity 1134470

View File

@ -1,4 +1,4 @@
/* $Id: tif_dirread.c,v 1.186 2015-05-31 21:07:41 bfriesen Exp $ */
/* $Id: tif_dirread.c,v 1.187 2015-05-31 21:09:33 bfriesen Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -2172,11 +2172,6 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntrySlong8Array(TIFF* tif, TIFFDirEn
break;
}
_TIFFfree(origdata);
if (err!=TIFFReadDirEntryErrOk)
{
_TIFFfree(data);
return(err);
}
*value=data;
return(TIFFReadDirEntryErrOk);
}