Debian Codegraph @

doc/releases/v4.4.0.rst

raw
1 Changes in TIFF v4.4.0
2 ======================
3
4 .. table:: References
5 :widths: auto
6
7 ====================== ==========================================
8 Current Version v4.4.0 (:tag:`v4.4.0`)
9 Previous Version :doc:`v4.3.0 <v4.3.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 None
25
26 Software configuration changes
27 ------------------------------
28
29 * Handle absolute paths in pkg-config file (:issue:`333`)
30 * Correct fix for the pkgconf file relative paths.
31 * cmake: allow running the tests with a read-only source directory.
32 * cmake: Fix ``STRIPCHOP_DEFAULT`` value in CMake builds.
33 * build: Fix static library imports in mingw related to LERC
34 * Fix version in :file:`libtiff-4.pc.in`, and CMake build: Add requirements to pc file
35 * cmake: Fix build with CMake 3.10.
36 * cmake: Export tiff targets.
37 * Make ``LERC_SUPPORT`` conditional on ``ZLIB_SUPPORT``
38
39 Library changes
40 ---------------
41
42 New/improved functionalities:
43
44 * :c:func:`TIFFIsBigTiff` function added.
45 * Functions :c:func:`TIFFFieldSetGetSize` and :c:func:`TIFFieldSetGetCountSize` added.
46 * :c:func:`LZWDecode`: major speed improvements (~30% faster)
47 * Predictor 2 (horizontal differentiation): support 64-bit
48 * Support libjpeg 9d
49
50 Bug fixes:
51
52 * Remove incorrect assert (:issue:`329`)
53 * avoid hang in :c:func:`TIFFRewriteDirectory` if a classic file > 4 GB is attempted to be created
54 * :file:`tif_jbig.c`: fix crash when reading a file with multiple IFD in memory-mapped mode and when bit reversal is needed (fixes :issue:`385`)
55 * :c:func:`TIFFFetchNormalTag`: avoid calling :c:func:`memcpy` with a null source pointer and size of zero (fixes :issue:`383`)
56 * :c:func:`TIFFWriteDirectoryTagData`: turn assertion on data length into a runtime check
57 * :c:func:`TIFFFetchStripThing`: avoid calling :c:func:`memcpy` with a null source pointer and size of zero (fixes :issue:`362`)
58 * :c:func:`TIFFReadDirectory`: avoid calling :c:func:`memcpy` with a null source pointer and size of zero (fixes :issue:`362`)
59 * :c:func:`TIFFYCbCrToRGBInit`: avoid Integer-overflow
60 * ``TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS)``: return error if returned pointer is NULL (fixes :issue:`342`)
61 * OJPEG: avoid assertion when using :c:func:`TIFFReadScanline` (fixes :issue:`337`)
62 * :c:func:`TIFFReadDirectory`: fix OJPEG hack (fixes :issue:`319`)
63 * LZW codec: fix support for strips/tiles > 2 GB on Windows
64 * :c:func:`TIFFAppendToStrip`: fix rewrite-in-place logic (fixes :issue:`309`)
65 * Fix :c:func:`TIFFRewriteDirectory` discarding directories.
66 * :c:func:`TIFFReadCustomDirectory`: avoid crash when reading SubjectDistance tag on a non EXIF directory (:issue:`316`)
67 * Fix Segmentation fault printing GPS directory if ``Altitude`` tag is present
68 * :file:`tif_jpeg.c`: do not emit progressive scans with mozjpeg. (:issue:`266`)
69 * :c:func:`_TIFFRewriteField`: fix when writing a IFD with a single tile that is a sparse one, on big endian hosts
70 * Fix all remaining uses of legacy Deflate compression id and warn on use.
71
72 Tools changes
73 -------------
74
75 Bug fixes:
76
77 * :program:`tiffcrop`: Fix issue :issue:`330` and some more from 320 to 349.
78 * :program:`tiffcrop`: fix issue :issue:`395`: generation of strange section images.
79 * :program:`tiffcrop`: fix issue :issue:`380` and :issue:`382` heap buffer overflow in extractImageSection
80 * :program:`tiffcrop`: fix FPE (:issue:`393`)
81 * :program:`tiffcrop`: buffsize check formula in :c:func:`loadImage` amended (fixes :issue:`273`, :issue:`275`)
82 * :program:`tiffcrop.c`: Fix issue :issue:`352` heap-buffer-overflow by correcting :c:type:`uint32_t` underflow.
83 * :program:`tiff2pdf`: handle 8-bit palette colormap.
84 * :program:`tiffcp`: avoid buffer overflow in "mode" string (fixes :issue:`400`)
85 * :program:`tiffcp`: Fix incomprehensible setting of orientation tag (fixes :issue:`29`)
86 * :program:`tiffcp`: do not try to fetch compressor-specific tags when not appropriate (fixes :issue:`396`)
87 * :program:`tiffcp`: fix heap buffer overflow (:issue:`278`)
88 * :program:`tiff2ps`: In :c:func:`limitMalloc` check for negative size (fixes :issue:`284`)
89 * :program:`tiffinfo`: add a ``-M`` switch to define the maximum heap allocation, and default it to 256 MiB (fixes :issue:`287`, :issue:`290`)
90 * :program:`tiffinfo`: limit more memory allocations using ``-M`` switch (fixes :issue:`288`)
91 * :program:`tiffset`: fix global-buffer-overflow for ASCII tags where count is required (fixes :issue:`355`)
92 * :program:`raw2tiff`: check that band number if not zero to avoid floating point exception(fixes :issue:`338`)
93 * :program:`tiffinfo`/:program:`tiffdump`: improve output for GDAL tags.
94
95 Contributed software changes
96 ----------------------------
97
98 None