Debian Codegraph @

doc/releases/v4.5.1.rst

raw
1 Changes in TIFF v4.5.1
2 ======================
3
4 .. table:: References
5 :widths: auto
6
7 ====================== ==========================================
8 Current Version v4.5.1 (:tag:`v4.5.1`)
9 Previous Version :doc:`v4.5.0 <v4.5.0>`
10 Master Download Site `<https://download.osgeo.org/libtiff/>`_
11 Master HTTP Site #1 `<http://www.simplesystems.org/libtiff/>`_
12 Master HTTP Site #2 `<https://libtiff.gitlab.io/libtiff/>`_
13 Master HTTP Site #3 `<http://libtiff.maptools.org/>`_
14 ====================== ==========================================
15
16 This document provides a summary of significant changes made to the
17 software between the *previous* and *current* versions (see
18 above). A fully-detailed change summary is provided by the :file:`ChangeLog` file
19 included in the release package and by the Git commit history:
20
21 .. warning::
22
23 This version will be the last one supporting most TIFF tools (except tiffinfo,
24 tiffdump, tiffcp and tiffset), whose maintenance will be discontinued, due
25 to the lack of contributors able to address reported security issues.
26 Starting with libtiff v4.6.0, their source code, at this time ,will still be
27 available in the source distribution, but they will no longer be built by
28 default, and issues related to them will no longer be accepted in the
29 libtiff bug tracker.
30
31
32 .. warning::
33
34 Some CMake related changes, in particular related to the CMake config file
35 now installed, should be considered as a preview and may change in the next
36 releases based on user feedback.
37 See discussion in https://gitlab.com/libtiff/libtiff/-/merge_requests/496
38 and https://gitlab.com/libtiff/libtiff/-/merge_requests/494
39
40 Major changes
41 -------------
42
43 None
44
45 Software configuration changes
46 ------------------------------
47
48 * Definition of tags reformatted (clang-format off) for better
49 readability of tag comments in tiff.h and tif_dirinfo.c
50
51 * Do not install libtiff-4.pc when tiff-install is reset.
52
53 * Add versioninfo resource files for DLL and tools
54 compiled with Windows MSVC and MINGW.
55
56 * Disable clang-formatting for tif_config.h.cmake.in and
57 tiffconf.h.cmake.in because sensitive for CMake scripts.
58
59 * CMake: make WebP component name compatible with upstream ConfigWebP.cmake
60
61 * CMake: make Findliblzma with upstream CMake config file
62
63 * CMake: FindDeflate.cmake: fix several errors (:issue:`526`).
64
65 * CMake: FindLERC.cmake: version string return added.
66
67 * CMake: export TiffConfig.cmake and TiffConfigVersion.cmake files
68
69 * CMake: fix export of INTERFACE_INCLUDE_DIRECTORIES
70
71 Library changes
72 ---------------
73
74 New/improved functionalities:
75
76 * Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB and make 'H' flag of
77 :c:func:`TIFFOpen` to warn and an alias of FILLORDER_MSB2LSB.
78 :file:`tif_lerc.c`: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN.
79
80 * Optimize relative seeking within :c:func:`TIFFSetDirectory`
81 by using the learned list of IFD offsets.
82
83 * Improve internal IFD offset and directory number map handling.
84
85 * Behavior of :c:func:`TIFFOpen` mode "r+" in the Windows implementation
86 adjusted to that of Linux.
87
88 API/ABI breaks:
89
90 * None
91
92 Bug fixes:
93
94 * TIFFDirectory td_fieldsset type changed from unsigned long, which can
95 be 32 or 64 bits, to uint32_t (fixes :issue:`484`).
96
97 * tif_ojpeg.c: checking for division by zero (fixes :issue:`554`).
98
99 * LZWDecode(): avoid crash when trying to read again from a strip with
100 a missing end-of-information marker (fixes :issue:`548`).
101
102 * Fixed runtime error: applying zero offset to null pointer
103 in :c:func:`countInkNamesString`.
104
105 * Fixing crash in :c:func:`TIFFUnlinkDirectory` when called with
106 directory number zero ("TIFFUnlinkDirectory(**0**)") as well as fixing
107 incorrect behaviour when unlinking the first directory.
108
109 * tif_luv: check and correct for NaN data in :c:func:`uv_encode`
110 (:issue:`530`).
111
112 * :c:func:`TIFFClose` avoid NULL pointer dereferencing
113 (:issue:`515`).
114
115 * tif_hash_set.c: include tif_hash_set.h after tif_config.h
116 to let a chance for GDAL symbol renaming trick.
117
118 * Fax3: fix failure to decode some fax3 number_of_images
119 and add test for Fax3 decoding issues
120 (:issue:`513`).
121
122 * :c:func:`TIFFSetDirectory` and :c:func:`TIFFWriteDirectorySec`
123 avoid harmless unsigned-integer-overflow
124 (due to gdal oss-fuzz #54311 and #54343).
125
126 * :file:`tif_ojpeg.c`: fix :issue:`554` by checking for division by zero
127 in OJPEGWriteHeaderInfo().
128
129 * LZWDecode(): avoid crash when trying to read again from a strip with
130 a missing end-of-information marker (:issue:`548`).
131
132 Documentation
133 -------------
134
135 * mention TIFFSetTagExtender() cannot add tags to custom directories.
136
137 * manpage: add multi page TIFF and SubIFDs description and read / write example.
138
139 Tools changes
140 -------------
141
142 New/improved functionality:
143
144 * None
145
146 Bug fixes:
147
148 * :program:`tiffcrop`: Consider error return of writeSelections() (fixes :issue:`553`).
149
150 * :program:`tiffcrop`: fix memory leak
151 (:issue:`475`).
152
153 * :program:`tiffcrop`: do not reuse input buffer for subsequent images
154 (:issue:`527`).
155
156 * :program:`tiffcrop`: Amend rotateImage() not to toggle the input
157 (main) image width and length parameters when only cropped image
158 sections are rotated. Remove buffptr from region structure
159 because never used. Fixes
160 :issue:`492`, :issue:`493`, :issue:`494`, :issue:`495`,
161 :issue:`499`, :issue:`518`, :issue:`519`.
162
163 * :program:`tiffcrop`: correctly update buffersize after rotateImage()
164 (:issue:`520`).
165
166 * :program:`tiffcrop`: added check for assumption on composite images. Fixes
167 :issue:`496`, :issue:`497`, :issue:`498`, :issue:`500`, :issue:`501`.
168
169 * :program:`tiffmedian`: avoid zero num_colors
170 (:issue:`477`).
171
172 * :program:`fax2ps`: fix buffer overflow in qsort function pcompar
173 (:issue:`475`).
174
175 * :program:`tiffset`: get filesize to allocate only the required memory
176 (:issue:`241`).
177
178 * :program:`tiffcrop`: fix :issue:`553` by considering error return of writeSelections().
179
180 * tif_ovrcache.c: check :c:func:`TIFFSetSubDirectory` return value (CID 1524573).
181
182
183 Contributed software changes
184 ----------------------------
185
186 None