From c0e310bc3f699695bcac2f0bf55c3acbc8837d39 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 11 Sep 2020 10:41:11 +0200 Subject: [PATCH] Fix comparison for max negative float value. --- libtiff/tif_dirread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index f7984aae..e9fe5c35 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -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);