| 1 |
Changes in TIFF v4.0.4 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v4.0.4 (:tag:`Release-v4-0-4`) |
| 9 |
Previous Version :doc:`v4.0.4beta <v4.0.4beta>` |
| 10 |
Master Download Site `<https://download.osgeo.org/libtiff/>`_ |
| 11 |
Master HTTP Site `<https://download.osgeo.org/libtiff/>`_ |
| 12 |
====================== ========================================== |
| 13 |
|
| 14 |
|
| 15 |
This document describes the changes made to the software between the |
| 16 |
*previous* and *current* versions (see above). If you don't |
| 17 |
find something listed here, then it was not done in this timeframe, or |
| 18 |
it was not considered important enough to be mentioned. The following |
| 19 |
information is located here: |
| 20 |
|
| 21 |
|
| 22 |
Major changes |
| 23 |
------------- |
| 24 |
|
| 25 |
* None |
| 26 |
|
| 27 |
|
| 28 |
Software configuration changes |
| 29 |
------------------------------ |
| 30 |
|
| 31 |
* :bugzilla:`2405`: Correct shell equality operator. |
| 32 |
* :bugzilla:`2498`: Adds an option to select the file I/O style on Windows hosts. |
| 33 |
|
| 34 |
|
| 35 |
Library changes |
| 36 |
--------------- |
| 37 |
|
| 38 |
* :c:func:`TIFFNumberOfDirectories`: Coverity 1134470 "Logically dead code" |
| 39 |
|
| 40 |
* :file:`tif_dirread.c`: |
| 41 |
|
| 42 |
* :c:func:`TIFFReadDirEntryDoubleArray`: Coverity 298626 "Logically dead code". |
| 43 |
* :c:func:`TIFFReadDirEntryFloatArray`: Coverity 298627 "Logically dead code". |
| 44 |
* :c:func:`TIFFReadDirEntryIfd8Array`: Coverity 298628 "Logically dead code". |
| 45 |
* :c:func:`TIFFReadDirEntrySlong8Array`: Coverity 298629 "Logically dead code" |
| 46 |
|
| 47 |
* :file:`tif_dirwrite.c` |
| 48 |
|
| 49 |
* :c:func:`_TIFFRewriteField`: Coverity 1024310 "Resource leak". |
| 50 |
|
| 51 |
* :file:`tif_jpeg.c` |
| 52 |
|
| 53 |
* :c:func:`JPEGCleanup`: Coverity 298624 "Dereference before null check". |
| 54 |
* :c:func:`JPEGDecode`: Coverity 602597 "Operands don't affect result". |
| 55 |
|
| 56 |
* :file:`tif_getimage.c` |
| 57 |
|
| 58 |
* :bugzilla:`2409`: Correct reading of certain tiled TIFFs. |
| 59 |
|
| 60 |
* :file:`tif_luv.c` |
| 61 |
|
| 62 |
* :c:func:`LogLuvDecodeStrip`: Coverity 991239 "Division or modulo by zero". |
| 63 |
* :c:func:`LogLuvDecodeTile`: Coverity 991227 "Division or modulo by zero". |
| 64 |
* :c:func:`LogLuvEncodeStrip`: Coverity 991240 "Division or modulo by zero". |
| 65 |
* :c:func:`LogLuvEncodeTile`: Coverity 991241 "Division or modulo by zero". |
| 66 |
|
| 67 |
* :file:`tif_lzw.c` |
| 68 |
|
| 69 |
* Decode files that contain consecutive :c:macro:`CODE_CLEAR` codes. |
| 70 |
|
| 71 |
* :file:`tif_ojpeg.c` |
| 72 |
|
| 73 |
* :c:func:`OJPEGReadBufferFill`: Coverity 603400 "Missing break in switch". |
| 74 |
* :c:func:`OJPEGReadHeaderInfoSecStreamDht`: Coverity 601720 "Resource leak". |
| 75 |
|
| 76 |
* :file:`tif_read.c` |
| 77 |
|
| 78 |
* :c:func:`TIFFStartTile`: Coverity 715973 and 715974 "Division or modulo by zero". |
| 79 |
|
| 80 |
* :file:`tif_unix.c` |
| 81 |
|
| 82 |
* :bugzilla:`2510`: Fix several harmless but still annoying warnings. |
| 83 |
|
| 84 |
* :file:`tif_write` |
| 85 |
|
| 86 |
* :c:func:`TIFFWriteEncodedStrip`: Coverity 715975 "Division or modulo by zero". |
| 87 |
* :c:func:`TIFFWriteEncodedTile`: Coverity 715976 and 715977 "Division or modulo by zero". |
| 88 |
* :c:func:`TIFFWriteRawStrip`: Coverity 715978 "Division or modulo by zero". |
| 89 |
* :c:func:`TIFFWriteScanline`: Coverity 715979 "Division or modulo by zero". |
| 90 |
|
| 91 |
|
| 92 |
Tools changes |
| 93 |
------------- |
| 94 |
|
| 95 |
* :program:`bmp2tiff` |
| 96 |
|
| 97 |
* Coverity 1024225 "Untrusted value as argument". |
| 98 |
* Coverity 1024678 "Unchecked return value from library". |
| 99 |
* Coverity 1024679 "Unchecked return value from library". |
| 100 |
* Coverity 1214160 "Ignoring number of bytes read". |
| 101 |
|
| 102 |
* :program:`gif2tiff` |
| 103 |
|
| 104 |
* Coverity 1024222 "Untrusted value as argument". |
| 105 |
* Coverity 1024890 "Ignoring number of bytes read". |
| 106 |
* Coverity 1024891 "Ignoring number of bytes read". |
| 107 |
* Coverity 1024892 "Ignoring number of bytes read". |
| 108 |
* Coverity 1024893 "Ignoring number of bytes read". |
| 109 |
* Coverity 1024894 "Ignoring number of bytes read". |
| 110 |
|
| 111 |
* :program:`ras2tiff` |
| 112 |
|
| 113 |
* Corrected Sun Raster header definition to be safe for |
| 114 |
64-bit systems. Add some header validations. Fixes many |
| 115 |
(unspecified) Coverity issues. |
| 116 |
* Coverity 1024223 "Untrusted value as argument". |
| 117 |
* Coverity 1301206: "Integer handling issues (BAD_SHIFT)". |
| 118 |
|
| 119 |
* :program:`raw2tiff` |
| 120 |
|
| 121 |
* Coverity 1024887 "Unchecked return value from library". |
| 122 |
* Coverity 1024888 "Unchecked return value from library". |
| 123 |
* Coverity 1024889 "Unchecked return value from library". |
| 124 |
* Coverity 1214162 "Ignoring number of bytes read". |
| 125 |
|
| 126 |
|
| 127 |
* :program:`tiff2pdf` |
| 128 |
|
| 129 |
* :bugzilla:`2078`: Suppress initial output of the header. |
| 130 |
* :bugzilla:`2150`: Change ColorTransform from "0" to "1". |
| 131 |
* Take care in using the return value from :c:func:`snprintf`. |
| 132 |
* Coverity 1024181 "Structurally dead code". |
| 133 |
* Coverity 1024181 "Structurally dead code". |
| 134 |
* Coverity 1227690 "Unused value". |
| 135 |
* Coverity 298621 "Resource leak". |
| 136 |
|
| 137 |
* :program:`tiff2ps` |
| 138 |
|
| 139 |
* Correct sizing and scaling problems with output document. |
| 140 |
|
| 141 |
* :program:`tiffcp` |
| 142 |
|
| 143 |
* Coverity 1024306, 1024307, 1024308, 1024309 "Resource leak". |
| 144 |
|
| 145 |
* :program:`tiffcrop` |
| 146 |
|
| 147 |
* Correctly copy the compression tag from the source TIFF. |
| 148 |
* Coverity 1024545 "Division or modulo by zero". |
| 149 |
* Coverity 1024586 "Logically dead code". |
| 150 |
* Coverity 1024796 "Nesting level does not match indentation". |
| 151 |
* Coverity 1024797 "Nesting level does not match indentation". |
| 152 |
* Coverity 1294542 "Logical vs. bitwise operator". |
| 153 |
* Coverity 1299740 "Out-of-bounds write". |
| 154 |
* Coverity 1299741 "Dereference before null check". |
| 155 |
|
| 156 |
* :program:`tiffdither` |
| 157 |
|
| 158 |
* Check memory allocations for failure. Also check |
| 159 |
multiplication overflow. (Fixes #2501, :cve:`2014-8128`) |
| 160 |
|
| 161 |
* :program:`tiffgt.c` |
| 162 |
|
| 163 |
* :bugzilla:`2401`: Appropriately call :c:func:`glFlush`. |
| 164 |
|
| 165 |
* :program:`tiffmedian` |
| 166 |
|
| 167 |
* Coverity 1024386 "Out-of-bounds read". |
| 168 |
* Coverity 1024386 "Out-of-bounds read". |
| 169 |
* Coverity 1024795 "Nesting level does not match indentation". |
| 170 |
* Coverity 1024795 "Nesting level does not match indentation". |
| 171 |
|
| 172 |
:program:`tiffsplit` |
| 173 |
|
| 174 |
* Coverity 1024304 "Resource leak". |
| 175 |
* Coverity 1024305 "Resource leak". |
| 176 |
|
| 177 |
|
| 178 |
Contributed software changes |
| 179 |
---------------------------- |
| 180 |
|
| 181 |
* :program:`addtiffo` |
| 182 |
|
| 183 |
* Check buffer size calculation for overflow. |
| 184 |
* Coverity 298615 "Resource leak". |
| 185 |
* Coverity 1024649 "Unintended sign extension". |
| 186 |
|
| 187 |
* :program:`iptcutil` |
| 188 |
|
| 189 |
* Coverity 1024468 "Infinite loop". |
| 190 |
* Coverity 1024727 "Truncated stdio return value". |
| 191 |
* Coverity 1214240 "Untrusted loop bound". |