Debian Codegraph @

doc/releases/v4.6.0.rst

raw
1 Changes in TIFF v4.6.0
2 ======================
3
4 .. table:: References
5 :widths: auto
6
7 ====================== ==========================================
8 Current Version v4.6.0 (:tag:`v4.6.0`)
9 Previous Version :doc:`v4.5.1 <v4.5.1>`
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 ====================== ==========================================
14
15 This document provides a summary of significant changes made to the
16 software between the *previous* and *current* versions (see
17 above). A fully-detailed change summary is provided by the :file:`ChangeLog` file
18 included in the release package and by the Git commit history:
19
20 Major changes
21 -------------
22
23 .. warning::
24
25 This version removes a big number of utilities that have suffered from lack
26 of maintenance over the years and were the source of various reported
27 security issues.
28 See "Removed functionality" below for the list of removed utilities.
29 Starting with libtiff v4.6.0, the source code for most TIFF tools (except tiffinfo,
30 tiffdump, tiffcp and tiffset) was discontinued, due to the lack of contributors
31 able to address reported security issues.
32 tiff2ps and tiff2pdf source code has been moved in a unsupported category,
33 no longer built by default, but are still part of the the source
34 distribution. Other retired utilities are in a archive/ directory, only
35 available in the libtiff git repository.
36 Issues related to unsupported and archived tools will no longer be accepted
37 in the libtiff bug tracker.
38
39
40 Software configuration changes
41 ------------------------------
42
43 * TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and
44 TIFF_LIBRARIES for compatibility with FindTIFF.cmake as shipped by CMake
45 (fixes :issue:`589`)
46
47 * Update CMake and autoconf scripts to consistently update LibTIFF version
48 defines and references in various files when version definition in
49 configure.ac has been changed.
50
51 - Move in tiffvers.h from libtiff source directory to libtiff build directory.
52 - Remove unused version information from tif_config.h
53 - With every CMake build the version defines (e.g. 4.5.1) within tiffvers.h
54 are consistently updated from configure.ac. The version release-date is
55 taken from file RELEASE-DATE.
56 - The files VERSION and RELEASE-DATE are only updated with a special CMake
57 target build: cmake --build . --target tiff_release.
58 - For autotools, version information is updated from configure.ac with
59 ./autogen.sh. LIBTIFF_RELEASE_DATE is taken form file RELEASE-DATE.
60 - ./configure generates tiffvers.h with the cached version information and
61 LIBTIFF_RELEASE_DATE.
62 - "make release" updates tiffvers.h and VERSION file with cached version info
63 and RELEASE-DATE file and tiffves.h with the current date.
64
65 * CMake: fix build with -Dstrip-chopping=off (fixes :issue:`600`)
66
67 Library changes
68 ---------------
69
70 New/improved functionalities:
71
72 * Fix using ``__attribute__`` libtiff with clang-for-windows
73
74 API/ABI breaks:
75
76 * None
77
78 Bug fixes:
79
80 * WebP decoder: validate WebP blob width, height, band count against TIFF
81 parameters to avoid use of uninitialized variable, or decoding corrupted
82 content without explicit error (fixes :issue:`581`, :issue:`582`).
83
84 * WebP codec: turn exact mode when creating lossless files to avoid altering
85 R,G,B values in areas where alpha=0 (https://github.com/OSGeo/gdal/issues/8038)
86
87 * Fix TransferFunction writing of only two transfer functions.
88
89 * TIFFReadDirectoryCheckOrder: avoid integer overflow. When it occurs, it
90 should be harmless in practice though
91 (https://gitlab.com/libtiff/libtiff/-/merge_requests/512)
92
93 Documentation
94 -------------
95
96 * TiffField functions documentation updated with return behaviour for not
97 defined tags and determination of write-/read-count size.
98
99 Tools changes
100 -------------
101
102 Removed functionality:
103
104 * The following tools are no longer compiled and have been moved to archive/tools:
105
106 - fax2ps
107 - fax2tiff
108 - pal2rgb
109 - ppm2tiff
110 - raw2tiff
111 - rgb2ycbcr
112 - thumbnail
113 - tiff2bw
114 - tiff2rgba
115 - tiffcmp
116 - tiffcrop
117 - tiffdither
118 - tiffgt
119 - tiffmedian
120
121 * The following tools are no longer compiled by default: tiff2ps and tiff2pdf.
122 They have been moved to tools/unsupported.
123 They can be built by setting ``--enable-tools-unsupported`` for autoconf,
124 or ``-Dtiff-tools-unsupported`` for CMake, but as the name imply, they are
125 no longer supported by upstream. Packagers are suggested *not* to enable those
126 options.
127
128 * tiffcp: remove -i option (ignore errors), because almost all
129 fuzzer issues were consequential errors from ignored errors because of the
130 "-i" option.
131
132 New/improved functionality:
133
134 * None
135
136 Bug fixes:
137
138 * tiffset: fix #597: warning: comparison of integer expressions of different
139 signedness. (fixes :issue:`597`)
140
141 * tiffcp: fix memory corruption (overflow) on hostile images
142 (fixes :issue:`591`)
143
144 Test changes
145 ------------
146
147 * Add missing test_write_read_tags.c and test_transferfunction_write_read.c
148 in tarball (fixes :issue:`585`) and correct "long" issue.
149
150 * Don't use "long" because can be int32_t or int64_t, depending on compiler and
151 system.
152
153 Changes to contributed and unsupported tools
154 --------------------------------------------
155
156 * raw2tiff: fix integer overflow and bypass of the check (fixes :issue:`592`)