| 1 |
Changes in TIFF v3.9.0 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v3.9.0 (:tag:`Release-v3-9-0`) |
| 9 |
Previous Version :doc:`v3.9.0beta <v3.9.0beta>` |
| 10 |
Master Download Site `<https://download.osgeo.org/libtiff/>`_ |
| 11 |
Master HTTP Site `<http://www.simplesystems.org/libtiff/>`_ |
| 12 |
====================== ========================================== |
| 13 |
|
| 14 |
This document describes the changes made to the software between the |
| 15 |
*previous* and *current* versions (see above). If you don't |
| 16 |
find something listed here, then it was not done in this timeframe, or |
| 17 |
it was not considered important enough to be mentioned. The following |
| 18 |
information is located here: |
| 19 |
|
| 20 |
|
| 21 |
Major changes |
| 22 |
------------- |
| 23 |
|
| 24 |
* All of the major changes since 3.8.0 were incorporated in |
| 25 |
the v3.9.0beta release. This is a stable release from a |
| 26 |
stable maintenance branch which incorporates many bug and |
| 27 |
security fixes needed by existing users of 3.X.X series |
| 28 |
libraries. Any future major changes will be in the 4.0.X |
| 29 |
series of releases. |
| 30 |
|
| 31 |
|
| 32 |
Software configuration changes |
| 33 |
------------------------------ |
| 34 |
|
| 35 |
* Updated autotools: Autoconf 2.64, Automake 1.11, libtool |
| 36 |
2.2.6. |
| 37 |
|
| 38 |
* Enabled support for Automake silent build rules |
| 39 |
(``--enable-silent-rules`` or ``make V=0``) |
| 40 |
|
| 41 |
* Enabled support for Automake colorized tests. |
| 42 |
|
| 43 |
* Added detection of a 64-bit integer type so that bundled |
| 44 |
utilities (like :program:`tiffcrop`) can use it when necessary. Note |
| 45 |
that this version of libtiff does not require a 64-bit integer |
| 46 |
type but libtiff 4.0 does. |
| 47 |
|
| 48 |
|
| 49 |
Library changes |
| 50 |
--------------- |
| 51 |
|
| 52 |
* :file:`libtiff/Makefile.am`, :file:`libtiff/Makefile.v`: Do not distribute |
| 53 |
:file:`tiffconf.h`, remove :file:`tif_config.h`/:file:`tiffconf.h` during cleaning. As |
| 54 |
per bug :bugzilla-rs:`1573` |
| 55 |
|
| 56 |
* :file:`tif_dirinfo.c`: :c:func:`_TIFFMergeFields()` now only merges in |
| 57 |
field definitions that are missing. Existing definitions are |
| 58 |
silently ignored. (:bugzilla-rs:`1585`) |
| 59 |
|
| 60 |
* :file:`tif_write.c`: Rip out the fancy logic in |
| 61 |
:c:func:`TIFFAppendToStrip` for establishing if an existing tile can |
| 62 |
be rewritten to the same location by comparing the current |
| 63 |
size to all the other blocks in the same directory. This is |
| 64 |
dangerous in many situations and can easily corrupt a file. |
| 65 |
(observed in esoteric GDAL situation that's hard to document). |
| 66 |
This change involves leaving the :c:expr:`stripbytecount[]` values |
| 67 |
unaltered till :c:func:`TIFFAppendToStrip`. Now we only write a block |
| 68 |
back to the same location it used to be at if the new data is |
| 69 |
the same size or smaller - otherwise we move it to the end of |
| 70 |
file. |
| 71 |
|
| 72 |
* :file:`tif_dirwrite.c`: Try to avoid writing out a full |
| 73 |
readbuffer of tile data when writing the directory just |
| 74 |
because we have :c:macro:`TIFF_BEENWRITING` at some point in the past. This |
| 75 |
was causing odd junk to be written out in a tile of data when |
| 76 |
a single tile had an interleaving of reading and writing with |
| 77 |
reading last. (highlighted by gdal |
| 78 |
:file:`autotest/gcore/tif_write.py` test 7.) |
| 79 |
|
| 80 |
* :file:`tif_predict.c`: use working buffer in :c:func:`PredictorEncodeTile` |
| 81 |
to avoid modifying callers buffer. |
| 82 |
:gdal-trac:`1965` |
| 83 |
|
| 84 |
* :file:`tif_predict.c`, :file:`tif_predict.h`, :file:`tif_lzw.c`, :file:`tif_zip.c`: Improvements so |
| 85 |
that predictor based encoding and decoding works in read-write |
| 86 |
update mode properly. |
| 87 |
:gdal-trac:`1948` |
| 88 |
|
| 89 |
* :file:`configure.com`, :file:`libtiff/tif_vms.c`: Better OpenVMS |
| 90 |
support. Patches from Alexey Chupahin. |
| 91 |
|
| 92 |
* :file:`tif_fax3.c`: fix leak of ``FAXCS`` state (per bug :bugzilla-rs:`1603`). |
| 93 |
|
| 94 |
* :file:`tif_fax3.c`: Make :c:func:`find0span` and :c:func:`find1span` non-inline |
| 95 |
to make MSVC 6.0 compiler happy. |
| 96 |
|
| 97 |
* :file:`tif_codec.c`: Avoid :c:macro:`NULL` pointer dereferencing for exotic |
| 98 |
compression codec codes. |
| 99 |
|
| 100 |
* :file:`tif_dirread.c`: zero ``tif->tif_dir`` after freeing the |
| 101 |
directory in :c:func:`TIFFReadCustomDirectory`. I don't exactly |
| 102 |
remember why this was important. |
| 103 |
|
| 104 |
* :file:`tif_dirwrite.c`: Fix potential memory leak writing large |
| 105 |
double tags. |
| 106 |
|
| 107 |
* :file:`tif_dirread.c`: Fix unchecked :c:func:`malloc` result. |
| 108 |
|
| 109 |
* :file:`libtiff/tif_lzw.c`: Properly zero out the codetable. As |
| 110 |
per bug :bugzilla:`1929` |
| 111 |
|
| 112 |
* :file:`libtiff/tif_lzw.c`: Properly zero out the string |
| 113 |
table. Fixes :cve:`2008-2327` security issue. |
| 114 |
|
| 115 |
* :file:`libtiff/tif_jbig.c`: Support the JBIG-KIT 2.0 |
| 116 |
(compatibility with the older versions retained). |
| 117 |
|
| 118 |
* :file:`libtiff/tif_getimage.c`, :file:`tiffio.h`: removed all use of |
| 119 |
``UaToAa`` and ``Bitmap16to8`` arrays in :c:struct:`TIFFRGBAImage` structure to |
| 120 |
restore ABI compatibility. These were just an attempt to |
| 121 |
speed up processing with precalculated tables. |
| 122 |
:bugzilla:`1979` |
| 123 |
|
| 124 |
* :file:`libtiff/tif_codec.c`: Avoid printing ``c->name`` if it does not exist. |
| 125 |
|
| 126 |
* :file:`libtiff/tif_getimage.c`, :file:`tiffio.h`: More ABI corrections. |
| 127 |
Removed ``SubsamplingHor/Ver`` from :c:struct:`TIFFRGBAImage` structure. |
| 128 |
:bugzilla:`1980` |
| 129 |
|
| 130 |
* :file:`libtiff/tif_jpeg.c`: Avoid errors if the application |
| 131 |
writes a full strip for the last partial strip in a jpeg |
| 132 |
compressed file. :bugzilla:`1981` |
| 133 |
|
| 134 |
* :file:`libtiff/tiffio.h`: GCC will now validate format |
| 135 |
specifications for :c:func:`TIFFError`, :c:func:`TIFFErrorExt`, :c:func:`TIFFWarning`, |
| 136 |
and :c:func:`TIFFWarningExt` in order to reveal bugs. Cleaned up |
| 137 |
resulting warnings throughout for 32 bit build only. |
| 138 |
|
| 139 |
* :file:`libtiff/tiffiop.h`: Add private type declarations for |
| 140 |
:c:type:`int64`, and :c:type:`uint64` so that bundled utilities (like :program:`tiffcrop`) |
| 141 |
can use it when necessary. |
| 142 |
|
| 143 |
* :file:`libtiff/tif_predict.c`: Add support for 32bit integer |
| 144 |
horz. predictors. |
| 145 |
:bugzilla:`1911` |
| 146 |
|
| 147 |
* :file:`libtiff/tif_luv.c`: Fix handling of tiled logluv images. |
| 148 |
:bugzilla:`2005` |
| 149 |
|
| 150 |
* :file:`libtiff/tif_write.c`: do not override the planar |
| 151 |
configuration to be contig for one sample files if planar |
| 152 |
configuration is already set. |
| 153 |
:bugzilla:`2057` |
| 154 |
|
| 155 |
* :file:`libtiff/tif_lzw.c`: Fix buffer underflow bug. |
| 156 |
:bugzilla:`2065` |
| 157 |
|
| 158 |
* :file:`libtiff/tif_luv.c`: correct return codes from ``encoderow`` to |
| 159 |
be 1 on success instead of zero. |
| 160 |
:bugzilla:`2069` |
| 161 |
|
| 162 |
* :file:`libtiff/tif_print.c` (:c:func:`TIFFPrintDirectory`): Applied patch |
| 163 |
for "tag error may cause segfault in tif_print.c." |
| 164 |
:bugzilla:`1896` |
| 165 |
|
| 166 |
|
| 167 |
Tools changes |
| 168 |
------------- |
| 169 |
|
| 170 |
* :file:`tools/tiff2pdf.c`: Fixed setting of alpha value per report |
| 171 |
on list. |
| 172 |
|
| 173 |
* :file:`tools/tiffsplit.c`: Get rid of unsafe :c:func:`strcpy`/:c:func:`strcat` |
| 174 |
calls when doing the filename/path construction. |
| 175 |
|
| 176 |
* :file:`tools/tiff2pdf.c`: More appropriate format string in |
| 177 |
:c:func:`t2p_write_pdf_string`; avoid signed/unsigned mismatch. |
| 178 |
|
| 179 |
* :file:`tools/tiffsplit.c`: Use dynamically allocated array |
| 180 |
instead of static when constructing output file names. |
| 181 |
|
| 182 |
* :file:`tools/tiffcrop.c`, :file:`man/tiffcrop.1`: Incorporated |
| 183 |
significant functionality update from Richard Nolde. |
| 184 |
|
| 185 |
* :file:`tools/tiff2ps.c`: Incorporated significant functionality |
| 186 |
update from Richard Nolde. In particular, support for |
| 187 |
rotating the image by 90, 180, 270, and 'auto' has been added. |
| 188 |
|
| 189 |
* :file:`tools/tiff2ps.c`: Remove spurious message printed to |
| 190 |
``stderr``. |
| 191 |
|
| 192 |
* :file:`tools/tiffsplit.c`: fix ``sampleformat`` to be :c:type:`shortv` instead |
| 193 |
of :c:type:`longv`. |
| 194 |
|
| 195 |
* :file:`tools/rgb2ycbcr.c`, :file:`tools/tiff2rgba.c`: Applied patch for |
| 196 |
:cve:`2009-2347` libtiff: integer overflows in various |
| 197 |
inter-color space conversion tools. |
| 198 |
:bugzilla:`2079` |
| 199 |
|
| 200 |
Contributed software changes |
| 201 |
---------------------------- |
| 202 |
|
| 203 |
* None |