| 1 |
Changes in TIFF v3.9.5 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v3.9.5 (:tag:`Release-v3-9-5`) |
| 9 |
Previous Version :doc:`v3.9.4 <v3.9.4>` |
| 10 |
Master Download Site `<https://download.osgeo.org/libtiff/>`_ |
| 11 |
Master HTTP Site `<http://www.simplesystems.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 |
* :file:`configure.ac`: Should use ``AC_CANONICAL_HOST`` since host specifies |
| 32 |
the run-time target whereas target is used to specify the final |
| 33 |
output target if the package is a build tool (like a compiler), |
| 34 |
which libtiff is not. Resolves :bugzilla:`2307` "Use |
| 35 |
AC_CANONICAL_HOST macro". |
| 36 |
|
| 37 |
|
| 38 |
Library changes |
| 39 |
--------------- |
| 40 |
|
| 41 |
* :file:`libtiff/tif_getimage.c`: Check the number of samples per pixel when |
| 42 |
working with YCbCr image in :c:func:`PickContigCase`. As per bug |
| 43 |
:bugzilla:`2216` |
| 44 |
|
| 45 |
* :file:`libtiff/tif_dir.c`: Set the bogus post-decoding hook when processing |
| 46 |
:c:macro:`TIFFTAG_BITSPERSAMPLE` in :c:func:`_TIFFVSetField` for the case of 8 bit when |
| 47 |
we don't need any post-processing. That helps to reset the hook if we |
| 48 |
previously set this field to some other value and the hook was |
| 49 |
initialized accordingly. As per bug |
| 50 |
:bugzilla:`2035` |
| 51 |
|
| 52 |
* :file:`libtiff/tif_getimage.c`: Avoid wrong math du to the signed/unsigned |
| 53 |
integer type conversions. As per bug |
| 54 |
:bugzilla:`2207` |
| 55 |
|
| 56 |
* :file:`libtiff/tif_dirinfo.c`: Don't use assertions in :c:func:`_TIFFFieldWithTag` |
| 57 |
and :c:func:`_TIFFFieldWithName` if the tag is not found in the tag table. |
| 58 |
This should be normal situation and returned :c:macro:`NULL` value should be |
| 59 |
properly handled by the caller. |
| 60 |
|
| 61 |
* :file:`libtiff/{tif_dirwrite.c, tif_print.c}`: Properly handle ``DotRange`` |
| 62 |
tag as it can be either byte or short size and should be set and read |
| 63 |
by value, not as an array. As per bug |
| 64 |
:bugzilla:`2116` |
| 65 |
|
| 66 |
* :file:`libtiff/tif_dirread.c`: Really reset the tag count in :c:func:`CheckDirCount` |
| 67 |
to expected value as the warning message suggests. As per bug |
| 68 |
:bugzilla:`1963` |
| 69 |
|
| 70 |
* :file:`libtiff/tif_open.c`: Fix mode check before opening a file. |
| 71 |
:bugzilla:`1906` |
| 72 |
|
| 73 |
* :file:`libtiff/tif_jpeg.c`, :file:`libtiff/tif_strip.c`: apply patch for |
| 74 |
:cve:`2010-3087` per bug |
| 75 |
:bugzilla:`2140` |
| 76 |
|
| 77 |
* :file:`libtiff/tif_dirread.c`: fix crash when reading a badly-constructed |
| 78 |
TIFF per :bugzilla:`1994` |
| 79 |
|
| 80 |
* :file:`libtiff/tif_ojpeg.c`: fix buffer overflow on problem data |
| 81 |
:bugzilla:`1999` |
| 82 |
|
| 83 |
* :file:`libtiff/tif_dirread.c`: modify warnings |
| 84 |
:bugzilla:`2016` |
| 85 |
|
| 86 |
* :file:`libtiff/tif_jpeg.c`: fix use of clumplines calculation |
| 87 |
:bugzilla:`2149` |
| 88 |
|
| 89 |
* :file:`libtiff/tif_color.c`: prevent crash in handling bad TIFFs |
| 90 |
resolves :cve:`2010-2595`, |
| 91 |
:bugzilla:`2208` |
| 92 |
|
| 93 |
* :file:`libtiff/tif_dirread.c`: fix needless tag ordering warning |
| 94 |
:bugzilla:`2210` |
| 95 |
|
| 96 |
* :file:`libtiff/tif_jpeg.c`: reduce usage of ``JCS_UNKNOWN`` in order |
| 97 |
to improve compatibility with various viewers |
| 98 |
submitted by e-mail from `Dwight Kelly <[email protected]>`_ |
| 99 |
|
| 100 |
* :file:`libtiff/tif_strip.c`: use :c:func:`TIFFGetFieldDefaulted` instead |
| 101 |
of :c:func:`TIFFGetField` when we assume that it will succeed |
| 102 |
:bugzilla:`2215` |
| 103 |
|
| 104 |
* :file:`libtiff/tif_dirread.c`: tolerate some cases where |
| 105 |
``FIELD_COLORMAP`` is missing |
| 106 |
:bugzilla:`2189` |
| 107 |
|
| 108 |
* :file:`libtiff/tif_jpeg.c`: Fix regressions with 2 and 3 band images |
| 109 |
caused by commit on 2010-12-14. Submitted by e-mail from |
| 110 |
`Even Rouault <[email protected]>`_ |
| 111 |
|
| 112 |
* :file:`libtiff/tif_dirwrite.c`: Avoid undefined behaviour when casting from |
| 113 |
:c:expr:`float` to :c:expr:`unsigned int` in :c:func:`TIFFWriteRationalArray` as reported by |
| 114 |
Kareem Shehata. |
| 115 |
|
| 116 |
* :file:`libtiff/tif_fax3.h`: Protect against a fax ``VL(n)`` codeword commanding |
| 117 |
a move left. Without this, a malicious input file can generate an |
| 118 |
indefinitely large series of runs without ``a0`` ever reaching the right |
| 119 |
margin, thus overrunning our buffer of run lengths. Per :cve:`2011-0192`. |
| 120 |
This is a modified version of a patch proposed by Drew Yao of Apple |
| 121 |
Product Security. It adds an :c:func:`unexpected` report, and disallows the |
| 122 |
equality case, since emitting a run without increasing ``a0`` still allows |
| 123 |
buffer overrun. |
| 124 |
|
| 125 |
* :file:`libtiff/tif_fax3.h`: Fix to last change allowing zero length |
| 126 |
runs at the start of a scanline---needed for legal cases. |
| 127 |
|
| 128 |
* :file:`libtiff/tif_thunder.c`: Correct potential buffer overflow with |
| 129 |
thunder encoded files with wrong bitspersample set. The libtiff |
| 130 |
development team would like to thank Marin Barbella and TippingPoint's |
| 131 |
Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, |
| 132 |
:cve:`2011-1167`). |
| 133 |
:bugzilla:`2300` |
| 134 |
|
| 135 |
* :file:`libtiff/tiffiop.h`: avoid declaring :c:type:`int64`/:c:type:`uint64` on AIX with XLC |
| 136 |
where they are already available. (:bugzilla:`2301`) |
| 137 |
|
| 138 |
|
| 139 |
Tools changes |
| 140 |
------------- |
| 141 |
|
| 142 |
* :file:`tools/tiffcrop.c`: Patch from Richard Nolde. Reject YCbCr |
| 143 |
subsampled data since tiffcrop currently doesn't support it. Fix |
| 144 |
JPEG support. |
| 145 |
|
| 146 |
* :file:`tools/tiffcp.c`: Initialize buffer arrays with zero to avoid |
| 147 |
referencing to uninitialized memory in some cases (e.g. when tile size |
| 148 |
set bigger than the image size). |
| 149 |
|
| 150 |
* :file:`tools/tiff2pdf.c`: Better generation of ID field in |
| 151 |
:c:func:`t2p_write_pdf_trailer`. Get rid of GCC aliasing warnings. |
| 152 |
|
| 153 |
* :file:`tools/tiff2pdf.c`: Fixed computation of the tile buffer size when |
| 154 |
converting JPEG encoded tiles. |
| 155 |
|
| 156 |
* :file:`tools/tiff2pdf.c`: Better handling of string fields, use static |
| 157 |
string buffers instead of dynamically allocated, use :c:func:`strncpy` instead |
| 158 |
of :c:func:`strcpy`, control the string lengths. |
| 159 |
|
| 160 |
* :file:`tools/tiff2bw.c`, :file:`tools/thumbnail.c`, :file:`tools/pal2rgb.c`: Fix the count for |
| 161 |
``WhitePoint`` tag as per bug |
| 162 |
:bugzilla:`2042` |
| 163 |
|
| 164 |
* :file:`tools/tiffdump.c`: Use :c:func:`PrintData` function instead of |
| 165 |
:c:func:`PrintByte`/:c:func:`PrintShort`/:c:func:`PrintLong`. Should fix an issue reported at |
| 166 |
:bugzilla:`2116` |
| 167 |
|
| 168 |
* :file:`tools/tiffset.c`: Properly handle ``TIFFTAG_PAGENUMBER``, |
| 169 |
``TIFFTAG_HALFTONEHINTS``, ``TIFFTAG_YCBCRSUBSAMPLING``, ``TIFFTAG_DOTRANGE`` |
| 170 |
which should be set by value. |
| 171 |
|
| 172 |
* :file:`tools/tiffdump.c`: Avoid integer overflows computing the buffer size |
| 173 |
for large directories. As per bug |
| 174 |
:bugzilla:`2218` |
| 175 |
|
| 176 |
* :file:`tools/tiff2pdf.c`: Fixed ID buffer filling in |
| 177 |
:c:func:`t2p_write_pdf_trailer`, thanks to Dmitry V. Levin. |
| 178 |
|
| 179 |
* :file:`tools/tiffcrop.c`: Patch from Richard Nolde to avoid a |
| 180 |
potentially unterminated buffer due to using an exceptionally long |
| 181 |
file name. |
| 182 |
|
| 183 |
* :file:`tools/tiff2ps.c`: improvements and enhancements from Richard Nolde |
| 184 |
with additional command line options for Document Title, |
| 185 |
Document Creator, and Page Orientation |
| 186 |
|
| 187 |
* :file:`tools/tiffsplit.c`: abort when reading a TIFF without a byte-count |
| 188 |
per :bugzilla:`1996` |
| 189 |
|
| 190 |
* :file:`tools/tiff2pdf.c`: add fill-page option |
| 191 |
:bugzilla:`2051` |
| 192 |
|
| 193 |
* :file:`tools/fax2ps.c`: replace unsafe :c:func:`tmpfile` with :c:func:`mkstemp` |
| 194 |
:bugzilla:`2118` |
| 195 |
|
| 196 |
* :file:`tools/tiff2pdf.c`: fix colors for images with RGBA |
| 197 |
interleaved data |
| 198 |
:bugzilla:`2250` |
| 199 |
|
| 200 |
* :file:`tools/tiffcrop.c`: new release by Richard Nolde |
| 201 |
:bugzilla:`2004` |
| 202 |
|
| 203 |
* :file:`tools/fax2ps.c`: be consistent with page-numbering |
| 204 |
:bugzilla:`2225` |
| 205 |
|
| 206 |
* :file:`tools/gif2tiff.c`: fix buffer overrun |
| 207 |
:bugzilla:`2270` |
| 208 |
|
| 209 |
* :file:`tools/fax2ps.c` (:c:func:`main`): Use :c:func:`tmpfile` rather than :c:func:`mkstemp` since |
| 210 |
it is much more portable. Tmpfile is included in ISO/IEC |
| 211 |
9899:1990 and the WIN32 CRT. |
| 212 |
|
| 213 |
|
| 214 |
Contributed software changes |
| 215 |
---------------------------- |
| 216 |
|
| 217 |
* None |