diff options
author | Sam James <sam@gentoo.org> | 2022-12-01 07:15:54 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-01 07:16:56 +0000 |
commit | 33944343462c9aa5a0a23b4a296074d0bc62c5c2 (patch) | |
tree | 8af62b89eea9538f34e6a662a38190bbc65df519 /media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch | |
parent | profiles/arch/loong: mask sys-apps/nvme-cli[hugepages] (diff) | |
download | gentoo-33944343462c9aa5a0a23b4a296074d0bc62c5c2.tar.gz gentoo-33944343462c9aa5a0a23b4a296074d0bc62c5c2.tar.bz2 gentoo-33944343462c9aa5a0a23b4a296074d0bc62c5c2.zip |
media-libs/tiff: backport fix for hylafaxplus regression
Closes: https://bugs.gentoo.org/883641
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch')
-rw-r--r-- | media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch b/media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch new file mode 100644 index 000000000000..c640f6e1b1a7 --- /dev/null +++ b/media-libs/tiff/files/tiff-4.4.0-hylafaxplus-regression.patch @@ -0,0 +1,34 @@ +https://bugs.gentoo.org/883641 +https://gitlab.com/libtiff/libtiff/-/issues/489 +https://gitlab.com/libtiff/libtiff/-/commit/72de8fd00be8a583a6b16cc0b700105020d249ba + +From 72de8fd00be8a583a6b16cc0b700105020d249ba Mon Sep 17 00:00:00 2001 +From: Even Rouault <even.rouault@spatialys.com> +Date: Tue, 29 Nov 2022 14:57:27 +0100 +Subject: [PATCH] TIFFWriteRawStrip(): restore capabilities to append data in + the current strip (fixes #489) + +This fixes a regression of libtiff 4.4.0 +--- a/libtiff/tif_write.c ++++ b/libtiff/tif_write.c +@@ -341,10 +341,13 @@ TIFFWriteRawStrip(TIFF* tif, uint32_t strip, void* data, tmsize_t cc) + return ((tmsize_t) -1); + } + +- tif->tif_curstrip = strip; ++ if (tif->tif_curstrip != strip) ++ { ++ tif->tif_curstrip = strip; + +- /* this informs TIFFAppendToStrip() we have changed or reset strip */ +- tif->tif_curoff = 0; ++ /* this informs TIFFAppendToStrip() we have changed or reset strip */ ++ tif->tif_curoff = 0; ++ } + + if (td->td_stripsperimage == 0) { + TIFFErrorExtR(tif, module,"Zero strips per image"); +-- +GitLab + + |