pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/tiff



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Sep 26 10:35:54 UTC 2025

Modified Files:
        pkgsrc/graphics/tiff: Makefile PLIST distinfo
Removed Files:
        pkgsrc/graphics/tiff/patches: patch-libtiff_tif__read.c
            patch-tools_thumbnail.c patch-tools_tiff2pdf.c
            patch-tools_tiffdither.c patch-tools_tiffmedian.c

Log Message:
tiff: update to 4.7.1.

Changes in TIFF v4.7.1
======================

Software configuration changes
------------------------------

* Define HAVE_JPEGTURBO_DUAL_MODE_8_12 and LERC_STATIC in tif_config.h.
* CMake: define WORDS_BIGENDIAN via tif_config.h
* doc/CMakeLists.txt: remove useless cmake_minimum_required()
* CMake: fix build with LLVM/Clang 17 (fixes :issue:`651`)
* CMake: set CMP0074 new policy
* Set LINKER_LANGUAGE for C targets with C deps
* Export tiffxx cmake target (fixes :issue:`674`)
* autogen.sh: Enable verbose wget.
* configure.ac: Syntax updates for Autoconf 2.71
* autogen.sh: Re-implement based on autoreconf. Failure to update
  config.guess/config.sub does not return error (fixes :issue:`672`)
* CMake: fix CMake 4.0 warning when minimum required version is < 3.10.
* CMake: Add build option tiff-static (fixes :issue:`709`)

Library changes
---------------

New/improved functionalities:

* Add TIFFOpenOptionsSetWarnAboutUnknownTags() for explicit control about
  emitting warnings for unknown tags. No longer emit warnings about unknown
  tags by default

* tif_predict.c: speed-up decompression in some cases.

API/ABI breaks:

* None

Bug fixes:

* tif_fax3: For fax group 3 data if no EOL is detected, reading is retried
  without synchronisation for EOLs. (fixes :issue:`54`)

* Updating TIFFMergeFieldInfo() with read_count=write_count=0 for FIELD_IGNORE.
  Updating TIFFMergeFieldInfo() with read_count=write_count=0 for FIELD_IGNORE.
  Improving handling when field_name = NULL.
  (fixes :issue:`532`)

* tiff.h: add COMPRESSION_JXL_DNG_1_7=52546 as used for JPEGXL compression in
  the DNG 1.7 specification

* TIFFWriteDirectorySec: Increment string length for ASCII tags for codec tags
  defined with FIELD_xxx bits, as it is done for FIELD_CUSTOM tags.
  (fixes :issue:`648`)

* Do not error out on a tag whose tag count value is zero, just issue a warning.
  Fix parsing a private tag 0x80a6 (fixes :issue:`647`)

* TIFFDefaultTransferFunction(): give up beyond td_bitspersample = 24
  (Fixes https://github.com/OSGeo/gdal/issues/10875)

* tif_getimage.c: Remove unnecessary calls to TIFFRGBAImageOK()
  (fixes :issue:`175`)

* Fix writing a Predictor=3 file with non-native endianness

* _TIFFVSetField(): fix potential use of unallocated memory (out-of-bounds
   read / nullptr dereference) in case of out-of-memory situation when dealing
   with custom tags (fixes :issue:`663`)

* tif_fax3.c: Error out for CCITT fax encoding if SamplesPerPixel is not equal
  1 and PlanarConfiguration = Contiguous (fixes :issue:`26`)

* tif_fax3.c: error out after a number of times end-of-line or unexpected bad
  code words have been reached. (fixes :issue:`670`)

* Fix memory leak in TIFFSetupStrips() (fixes :issue:`665`)

* tif_zip.c: Provide zlib allocation functions.
  Otherwise for zlib built with -DZ_SOLO inflating will fail.

* Fix memory leak in _TIFFSetDefaultCompressionState. (fixes :issue:`676`)

* tif_predict.c: Don’t overwrite input buffer of TIFFWriteScanline() if
  "prediction" is enabled. Use extra working buffer in PredictorEncodeRow().
  (fixes :issue:`5`)

* tif_getimage.c: update some integer overflow checks (fixes :issue:`79`)

* tif_getimage.c: Fix buffer underflow crash for less raster rows at
  TIFFReadRGBAImageOriented() (fixes :issue:`704`)

* TIFFReadRGBAImage(): several fixes to avoid buffer overflows.

* Correct passing arguments to TIFFCvtIEEEFloatToNative() and
  TIFFCvtIEEEDoubleToNative() if HAVE_IEEEFP is not defined. (fixes
  :issue:`699`)

* LZWDecode(): avoid nullptr dereference when trying to read again after EOI
  marker has been found with remaining output bytes (fixes :issue:`698`)

* TIFFSetSubDirectory(): check _TIFFCheckDirNumberAndOffset() return.

* TIFFUnlinkDirectory() and TIFFWriteDirectorySec(): clear tif_rawcp when
  clearing tif_rawdata (fixes :issue:`711`)

* JPEGEncodeRaw(): error out if a previous scanline failed to be written, to
  avoid out-of-bounds access (fixes :issue:`714`)

* tif_jpeg: Fix bug in JPEGDecodeRaw() if JPEG_LIB_MK1_OR_12BIT is defined for
  8/12bit dual mode, introduced in libjpeg-turbo 2.2, which was actually
  released as 3.0. (fixes :issue:`717`)

* add assert for TIFFReadCustomDirectory infoarray check.

Other changes:

* tif_jpeg.c: use JPEG_MAX_DIMENSION constant instead of hard-coded 65535 value

* tif_lzw.c / tif_packbits.c: use NULL instead of 0.

* Take into account PACKBITS_READ_ONLY, LZW_READ_ONLY, and LERC_READ_ONLY
  macros to disable compiling write-support for those codecs.

* tif_lerc.c: add missing casts

* Merge several functions implemented twice in different modules.
  (see :issue:`154`)

* Remove get_field_type form TIFFField structure because it is not used
  anymore and rename other parameter to set_get_field_type

* Silence some Coverity Scan warnigs and mark already dismissed ones.

* References to codec libraries updated and missing codec compile defines
  (tiffconf.h) added.

* Move mkg3states under libtiff/tools. (fixes :issue:`708`)

* tiff_itrunc(): don't use rand() to please Coverity Scan.

* tiffio.h: fix compilation with LOGLUV_PUBLIC=0

* LICENSE.md: Add BSD license for Lempel-Ziv & Welch compression (tif_lzw.c)
  (fixes :issue:`431`)

Documentation
-------------

* TIFFRGBAImage.rst note added for incorrect saving of images with TIFF
  orientation from 5 (LeftTop) to 8 (LeftBottom) in the raster.

* TIFFRGBAImage.rst note added about un-associated alpha handling
  (fixes :issue:`67`)

* Update "Defining New TIFF Tags" description. (fixes :issue:`642`)

* Fix return type of TIFFReadEncodedTile()

* Update the documentation to reflect deprecated typedefs.

* TIFFWriteDirectory.rst: Clarify TIFFSetWriteOffset() only sets offset for
  image data and not for IFD data.

* Update documentation on re-entrancy and thread safety.

* Remove dead links to no more existing Awaresystems web-site.

* Updating BigTIFF specification and some miscelaneous editions.

* Replace some last links and remove last todos.

* Added hints for correct allocation of TIFFYCbCrtoRGB structure and its
  associated buffers. (fixes :issue:`681`)

* Added chapter to "Using the TIFF Library" with links to handling multi-page
  TIFF and custom directories. (fixes :issue:`43`)

* update TIFFOpen.rst with the return values of mapproc and unmapproc.
  (fixes :issue:`12`)

Tools changes
-------------

New/improved functionality:

* tiffinfo: add a -W switch to warn about unknown tags.

* tiffdither: process all pages in input TIFF file.

Bug fixes:

* ppm2tiff: Fix bug in `pack_words` trailing bytes, where last two bytes of
  each line were written wrongly. (fixes :issue:`467`)

* fax2ps: fix regression of commit 28c38d648b64a66c3218778c4745225fe3e3a06d
  where TIFFTAG_FAXFILLFUNC is being used rather than an output buffer
  (fixes :issue:`649`)

* tiff2pdf: Check TIFFTAG_TILELENGTH and TIFFTAGTILEWIDTH (fixes :issue:`650`)

* tiff2pdf: check h_samp and v_samp for range 1 to 4 to avoid division by
  zero. (fixes :issue:`654`)

* tiff2pdf: avoid null pointer dereference. (fixes :issue:`741`)

* Improve non-secure integer overflow check (comparison of division result
  with multiplicant) at compiler optimisation in tiffcp, rgb2ycbcr and tiff2rgba. (fixes :issue:`546`)

* tiff2rgba: fix some "a partial expression can generate an overflow before it
  is assigned to a broader type" warnings. (fixes :issue:`682`)

* tiffdither/tiffmedian: Don't skip the first line of the input image.
  (fixes :issue:`703`)

* tiffdither: avoid out-of-bounds read identified in :issue:`733`

* tiffmedian: error out if TIFFReadScanline() fails (fixes :issue:`707`)

* tiffmedian: close input file. (fixes :issue:`735`)

* thumbail: avoid potential out of bounds access (fixes :issue:`715`)

* tiffcrop: close open TIFF files and release allocated buffers before exiting
  in case of error to avoid memory leaks. (fixes :issue:`716`)

* tiffcrop: fix double-free and memory leak exposed by :issue:`721`

* tiffcrop: avoid buffer overflow. (fixes :issue:`740`)

* tiffcrop: avoid nullptr dereference. (fixes :issue:`734`)

* tiffdump: Fix coverity scan issue CID 1373365: Passing tainted expression
  \*datamem to PrintData, which uses it as a divisor or modulus.

* tiff2ps: check return of TIFFGetFiled() for TIFFTAG_STRIPBYTECOUNTS and
  TIFFTAG_TILEBYTECOUNTS to avoid NULL pointer dereference.
  (fixes :issue:`718`)

* tiffcmp: fix memory leak when second file cannot be opened.
  (fixes :issue:`718` and :issue:`729`)

* tiffcp: fix setting compression level for lossless codecs.
  (fixes :issue:`730`)

* raw2tiff: close input file before exit (fixes :issue:`742`)

Changes to contributed and unsupported tools
--------------------------------------------

* addtiffo: Fixing MSVC compiler warnings

* Improved oss-fuzz fuzzer tiff_read_rgba_fuzzer.cc.

* oss-fuzz: fix memory leak in fuzz target.


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 pkgsrc/graphics/tiff/Makefile
cvs rdiff -u -r1.35 -r1.36 pkgsrc/graphics/tiff/PLIST
cvs rdiff -u -r1.109 -r1.110 pkgsrc/graphics/tiff/distinfo
cvs rdiff -u -r1.3 -r0 pkgsrc/graphics/tiff/patches/patch-libtiff_tif__read.c
cvs rdiff -u -r1.1 -r0 pkgsrc/graphics/tiff/patches/patch-tools_thumbnail.c \
    pkgsrc/graphics/tiff/patches/patch-tools_tiffdither.c \
    pkgsrc/graphics/tiff/patches/patch-tools_tiffmedian.c
cvs rdiff -u -r1.5 -r0 pkgsrc/graphics/tiff/patches/patch-tools_tiff2pdf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/tiff/Makefile
diff -u pkgsrc/graphics/tiff/Makefile:1.170 pkgsrc/graphics/tiff/Makefile:1.171
--- pkgsrc/graphics/tiff/Makefile:1.170 Sun Aug 17 09:38:57 2025
+++ pkgsrc/graphics/tiff/Makefile       Fri Sep 26 10:35:54 2025
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.170 2025/08/17 09:38:57 bsiegert Exp $
+# $NetBSD: Makefile,v 1.171 2025/09/26 10:35:54 wiz Exp $
 
-VERSION_BASE=  4.7.0
+VERSION_BASE=  4.7.1
 # Accomodate testing unreleased versions.
 VERSION_RC=
 DISTNAME=      tiff-${VERSION_BASE}${VERSION_RC}
-PKGREVISION=   3
 CATEGORIES=    graphics
 MASTER_SITES=  https://download.osgeo.org/libtiff/
 
@@ -35,6 +34,7 @@ CONFIGURE_ARGS+=      --enable-lerc
 PKGCONFIG_OVERRIDE=    libtiff-4.pc.in
 
 # NetBSD 10 amd64: pass except 4 cases, because it uses non-POSIX diff -Z
+# NetBSD 11.99.2/amd64: all tests pass
 TEST_TARGET=           check
 
 post-install:

Index: pkgsrc/graphics/tiff/PLIST
diff -u pkgsrc/graphics/tiff/PLIST:1.35 pkgsrc/graphics/tiff/PLIST:1.36
--- pkgsrc/graphics/tiff/PLIST:1.35     Wed Sep 18 11:39:36 2024
+++ pkgsrc/graphics/tiff/PLIST  Fri Sep 26 10:35:54 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.35 2024/09/18 11:39:36 gdt Exp $
+@comment $NetBSD: PLIST,v 1.36 2025/09/26 10:35:54 wiz Exp $
 bin/fax2ps
 bin/fax2tiff
 bin/pal2rgb
@@ -260,6 +260,7 @@ share/doc/tiff/manual/_sources/releases/
 share/doc/tiff/manual/_sources/releases/v4.5.1.rst.txt
 share/doc/tiff/manual/_sources/releases/v4.6.0.rst.txt
 share/doc/tiff/manual/_sources/releases/v4.7.0.rst.txt
+share/doc/tiff/manual/_sources/releases/v4.7.1.rst.txt
 share/doc/tiff/manual/_sources/rfcs/index.rst.txt
 share/doc/tiff/manual/_sources/rfcs/rfc1_psc.rst.txt
 share/doc/tiff/manual/_sources/rfcs/rfc2_restoring_needed_tools.rst.txt
@@ -441,6 +442,7 @@ share/doc/tiff/manual/releases/v4.5.0.ht
 share/doc/tiff/manual/releases/v4.5.1.html
 share/doc/tiff/manual/releases/v4.6.0.html
 share/doc/tiff/manual/releases/v4.7.0.html
+share/doc/tiff/manual/releases/v4.7.1.html
 share/doc/tiff/manual/rfcs/index.html
 share/doc/tiff/manual/rfcs/rfc1_psc.html
 share/doc/tiff/manual/rfcs/rfc2_restoring_needed_tools.html

Index: pkgsrc/graphics/tiff/distinfo
diff -u pkgsrc/graphics/tiff/distinfo:1.109 pkgsrc/graphics/tiff/distinfo:1.110
--- pkgsrc/graphics/tiff/distinfo:1.109 Thu Aug 14 10:02:21 2025
+++ pkgsrc/graphics/tiff/distinfo       Fri Sep 26 10:35:54 2025
@@ -1,11 +1,6 @@
-$NetBSD: distinfo,v 1.109 2025/08/14 10:02:21 wiz Exp $
+$NetBSD: distinfo,v 1.110 2025/09/26 10:35:54 wiz Exp $
 
-BLAKE2s (tiff-4.7.0.tar.gz) = 6daf895aab5da61e4d9058a39659ec629a4172794938e5c42b70a457ba2be691
-SHA512 (tiff-4.7.0.tar.gz) = a77a050d1d8777c6d86077c3c26e8d35f98717fe14bb3c049e2b82fbfbb374e96f83a0c1ff67ffb21591a9a7abf0d3e18c3d7695c96939326cc19a9712dd2492
-Size (tiff-4.7.0.tar.gz) = 3896583 bytes
+BLAKE2s (tiff-4.7.1.tar.gz) = bfcb69d4a767755e7f3782810670ec67c21b37902f89960d95c834826a20053e
+SHA512 (tiff-4.7.1.tar.gz) = 89c5af880626888451caf8b78a2f57b2973719db837dce6530c1fb30318fc6fba7ef9f9d8e46c547821eae29322607cb5146bf3de39b3d7b70bcf5b68c4ee3b1
+Size (tiff-4.7.1.tar.gz) = 4000609 bytes
 SHA1 (patch-configure) = 48c3f6103e35049e0bd4a5f32a508cd9439c1f3f
-SHA1 (patch-libtiff_tif__read.c) = e359cb86d87f7bf035fa917c64ec32594ed2cd1b
-SHA1 (patch-tools_thumbnail.c) = a0909b38fe41ee21f98f4b31a0c7d5fefff2b6f9
-SHA1 (patch-tools_tiff2pdf.c) = a8f9424eec7dbde0cd72efe502704cff35cdd2c7
-SHA1 (patch-tools_tiffdither.c) = d7c5fd6177c9949ed0b45cbffcca4bf5b7bade60
-SHA1 (patch-tools_tiffmedian.c) = 053704977f7b3ffe0b8f46b496aa985927c1ab51



Home | Main Index | Thread Index | Old Index