| 1 |
Changes in TIFF v4.5.0 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v4.5.0 (:tag:`v4.5.0`) |
| 9 |
Previous Version :doc:`v4.4.0 <v4.4.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 |
Major changes |
| 22 |
------------- |
| 23 |
|
| 24 |
* Whole code base reformatting of .c/.h files using new .clang-format format |
| 25 |
* Documentation changed from static HTML and man pages to Restructured Text |
| 26 |
(rst). HTML and man pages are now build artifacts. |
| 27 |
|
| 28 |
Software configuration changes |
| 29 |
------------------------------ |
| 30 |
|
| 31 |
* SONAME version bumped to 6 due to changes in symbol versioning. |
| 32 |
* autoconf/cmake: detect (not yet released) libjpeg-turbo 2.2 to take into |
| 33 |
its capability of handling both 8-bit JPEG and 12-bit JPEG in a single build. |
| 34 |
* autoconf/cmake: detect sphinx-build to build HTML and man pages |
| 35 |
* CMakeLists.txt: fix warning with -Wdev |
| 36 |
* CMake: correctly set default value of 'lzma' option when liblzma is detected |
| 37 |
(:issue:`482`) |
| 38 |
* CMake: Moved linking of CMath::CMath into CMath_LIBRARY check. |
| 39 |
* Fix CMake build to be compatible with FetchContent. |
| 40 |
* cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS (:issue:`443`) |
| 41 |
* cmake: Fixes for Visual Studio 2022. |
| 42 |
* Adds Requires.private generation so that pkg-config can correctly find |
| 43 |
the dependencies of libtiff. |
| 44 |
* Fix dependency on libm on Android |
| 45 |
* cmake: libtiffxx is static on win32 |
| 46 |
* Fix build in tif_lzw.c |
| 47 |
* CMake: Add options for disabling tools, tests, contrib and docs. |
| 48 |
|
| 49 |
Library changes |
| 50 |
--------------- |
| 51 |
|
| 52 |
New/improved functionalities: |
| 53 |
|
| 54 |
* Addition of an open option concept with the new functions |
| 55 |
:c:func:`TIFFOpenExt`, :c:func:`TIFFOpenWExt`, :c:func:`TIFFFdOpenExt`, |
| 56 |
:c:func:`TIFFClientOpenExt`, :c:func:`TIFFOpenOptionsAlloc`, |
| 57 |
:c:func:`TIFFOpenOptionsFree` |
| 58 |
* Leveraging above mentioned open option concept, addition of a new capability |
| 59 |
to limit the size of a single dynamic memory allocation done |
| 60 |
by the library with :c:func:`TIFFOpenOptionsSetMaxSingleMemAlloc` |
| 61 |
* Leveraging above mentioned open option concept, addition of a new capability |
| 62 |
to specify per-TIFF handle re-entrant error and warning callbacks |
| 63 |
with :c:func:`TIFFOpenOptionsSetErrorHandlerExtR` and |
| 64 |
:c:func:`TIFFOpenOptionsSetWarningHandlerExtR` |
| 65 |
* Related to IFD-Loop detection refactoring, the number of IFDs that libtiff |
| 66 |
can browse through has been extended from 65535 to 1048576. This value is |
| 67 |
a build-time setting that can be configured with CMake's TIFF_MAX_DIR_COUNT |
| 68 |
variable or autoconf's --with-max-dir-count option. |
| 69 |
|
| 70 |
API/ABI breaks: |
| 71 |
|
| 72 |
* tdir_t type updated to uint32_t. This type is now used for the return value of |
| 73 |
:c:func:`TIFFCurrentDirectory` and :c:func:`TIFFNumberOfDirectories`, and |
| 74 |
as the argument of :c:func:`TIFFSetDirectory` and :c:func:`TIFFUnlinkDirectory` |
| 75 |
|
| 76 |
Bug fixes: |
| 77 |
|
| 78 |
* TIFFWriteRawStrip(): restore capabilities to append data in the current strip |
| 79 |
(:issue:`489`) |
| 80 |
* _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on |
| 81 |
broken files (:issue:`479`) |
| 82 |
* TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB |
| 83 |
(oss-fuzz #53137) |
| 84 |
* Replace sprintf calls with snprintf to fix warnings on macOS 13 SDK |
| 85 |
* Added warning messages for FIELD_IGNORE tags for writing and for |
| 86 |
TIFF_SETGET_UNDEFINED for reading added. (:issue:`438`) |
| 87 |
* tif_dirinfo.c: fix TIFFTAG_CLIPPATH tag declaration (:issue:`439`) |
| 88 |
* tif_dirinfo.c: fix TIFFTAG_COMPRESSION and _BITSPERSAMPLE tag declaration |
| 89 |
(:issue:`364`) |
| 90 |
* Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value |
| 91 |
(:issue:`149`, :issue:`150`, :issue:`152`, :issue:`168`, :issue:`250`, |
| 92 |
:issue:`269`,:issue:`398`, CVE-2022-3599, :issue:`456`) |
| 93 |
* TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case |
| 94 |
(oss-fuzz #52309) |
| 95 |
* Improved/fixes IFD-Loop Handling (:issue:`455`). |
| 96 |
* Update getimage to support large raster images. |
| 97 |
* Presetting of default tag values extended (e.g. PlanarConfig). (:issue:`449`) |
| 98 |
* Deal with RichTIFFIPTC tag written with LONG type (:issue:`225`) |
| 99 |
* TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected |
| 100 |
(:issue:`442`) |
| 101 |
* tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional |
| 102 |
compile-time version check |
| 103 |
* TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could |
| 104 |
cause issues with reading JPEG compressed files |
| 105 |
* _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific |
| 106 |
tag and the codec is not configured (:issue:`433`, :issue:`486`, |
| 107 |
CVE-2022-34526) |
| 108 |
* Add basic 16 bit cielab support. |
| 109 |
* WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding |
| 110 |
* tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2 |
| 111 |
|
| 112 |
Tools changes |
| 113 |
------------- |
| 114 |
|
| 115 |
New/improved functionality: |
| 116 |
|
| 117 |
* :program:`tiffinfo`: Updated to parse through SubIFDs and show their tags. |
| 118 |
|
| 119 |
Bug fixes: |
| 120 |
|
| 121 |
* :program:`tiffcrop`: add check if (bps != 1) in writeSingleSection() |
| 122 |
(:issue:`169`) |
| 123 |
* :program:`tiffcrop`: Fix too many 'mode' options on command line |
| 124 |
(:issue:`470` and :issue:`450`) |
| 125 |
* :program:`tiffcrop`: Fix memory allocation to require a larger buffer |
| 126 |
(:issue:`271`, :issue:`381`, :issue:`386`, :issue:`388`, :issue:`389`, |
| 127 |
:issue:`435`, CVE-2022-3570, CVE-2022-3598) |
| 128 |
* :program:`tiffcrop`: disable incompatibility of -Z, -X, -Y, -z options with |
| 129 |
any PAGE_MODE_x option (:issue:`411`, CVE-2022-3627, :issue:`413`, |
| 130 |
CVE-2022-3597, :issue:`426`, CVE-2022-3626) |
| 131 |
* :program:`tiffcrop`: -S option mutually exclusive (:issue:`349`, |
| 132 |
:issue:`414`, :issue:`422`, :issue:`423`, :issue:`424`) |
| 133 |
* :program:`tiffcrop`: fix floating-point exception (:issue:`415`, |
| 134 |
:issue:`427`, :issue:`428`, CVE-2022-2056, CVE-2022-2057, CVE-2022-2058) |
| 135 |
* :program:`tiff2pdf`: Don't try to seek into stdout (:issue:`441`) |
| 136 |
* :program:`tiffinfo`: update curdir from uint16_t to tdir_t for more than 64k |
| 137 |
IFD handling. |
| 138 |
|
| 139 |
Contributed software changes |
| 140 |
---------------------------- |
| 141 |
|
| 142 |
None |