diff options
author | Even Rouault <even.rouault@spatialys.com> | 2017-01-11 16:09:02 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2017-01-11 16:09:02 +0000 |
commit | d2e6964efcb785b8566a6b538133299870082768 (patch) | |
tree | ddf2a9e1b381dc9883e015ff2647e3cb34c86cb8 /ChangeLog | |
parent | a39f613104d7eafba618bdeefe92f07379e808d8 (diff) | |
download | libtiff-git-d2e6964efcb785b8566a6b538133299870082768.tar.gz |
* libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings
of double to other data types to avoid undefined behaviour if the output range
isn't big enough to hold the input value.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643
http://bugzilla.maptools.org/show_bug.cgi?id=2642
http://bugzilla.maptools.org/show_bug.cgi?id=2646
http://bugzilla.maptools.org/show_bug.cgi?id=2647
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 2017-01-11 Even Rouault <even.rouault at spatialys.com> + * libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings + of double to other data types to avoid undefined behaviour if the output range + isn't big enough to hold the input value. + Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643 + http://bugzilla.maptools.org/show_bug.cgi?id=2642 + http://bugzilla.maptools.org/show_bug.cgi?id=2646 + http://bugzilla.maptools.org/show_bug.cgi?id=2647 + +2017-01-11 Even Rouault <even.rouault at spatialys.com> + * libtiff/tif_dirread.c: avoid division by floating point 0 in TIFFReadDirEntryCheckedRational() and TIFFReadDirEntryCheckedSrational(), and return 0 in that case (instead of infinity as before presumably) |