Merge branch 'fix-float-compare' into 'master'
Fix comparison for max negative float value. See merge request libtiff/libtiff!152
This commit is contained in:
commit
57d487aa1c
@ -639,7 +639,7 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* d
|
||||
err=TIFFReadDirEntryCheckedDouble(tif,direntry,&m);
|
||||
if (err!=TIFFReadDirEntryErrOk)
|
||||
return(err);
|
||||
if ((m > FLT_MAX) || (m < FLT_MIN))
|
||||
if ((m > FLT_MAX) || (m < -FLT_MAX))
|
||||
return(TIFFReadDirEntryErrRange);
|
||||
*value=(float)m;
|
||||
return(TIFFReadDirEntryErrOk);
|
||||
|
Loading…
Reference in New Issue
Block a user