From 1d1757f2fda673cad7c4b1afabfac969e8e5fdc5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Jun 2020 08:41:07 +0200 Subject: update to version 6.9.11 patch level 21 still affected by https://github.com/ImageMagick/ImageMagick6/issues/85 --- 218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch | 32 -------------------------- ImageMagick6.spec | 11 ++++----- 2 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch diff --git a/218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch b/218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch deleted file mode 100644 index cedecca..0000000 --- a/218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 218d6abc4e36596c90a07463bfb2ab9e8312efbb Mon Sep 17 00:00:00 2001 -From: Dirk Lemstra -Date: Sat, 13 Jun 2020 18:00:50 +0200 -Subject: [PATCH] Check the type of the field before performing the - multiplication. - ---- - coders/tiff.c | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/coders/tiff.c b/coders/tiff.c -index 61858c3cc..25a939811 100644 ---- a/coders/tiff.c -+++ b/coders/tiff.c -@@ -638,9 +638,16 @@ static MagickBooleanType TIFFGetProfiles(TIFF *tiff,Image *image) - if ((TIFFGetField(tiff,TIFFTAG_RICHTIFFIPTC,&length,&profile) == 1) && - (profile != (unsigned char *) NULL)) - { -+ const TIFFField -+ *field; -+ - if (TIFFIsByteSwapped(tiff) != 0) - TIFFSwabArrayOfLong((uint32 *) profile,(size_t) length); -- status=ReadProfile(image,"iptc",profile,4L*length); -+ field=TIFFFieldWithTag(tiff,TIFFTAG_RICHTIFFIPTC); -+ if (TIFFFieldDataType(field) == TIFF_LONG) -+ status=ReadProfile(image,"iptc",profile,4L*length); -+ else -+ status=ReadProfile(image,"iptc",profile,length); - } - #endif - #if defined(TIFFTAG_XMLPACKET) diff --git a/ImageMagick6.spec b/ImageMagick6.spec index 2a43486..4b79b0d 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -9,7 +9,7 @@ # Please preserve changelog entries # %global VER 6.9.11 -%global Patchlevel 20 +%global Patchlevel 21 %global incsuffixe -6 %global libsuffixe -6.Q16 %global with_tests 0%{!?_without_tests:1} @@ -78,8 +78,6 @@ Url: http://www.imagemagick.org/ #Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%%{VER}-%%{Patchlevel}.tar.xz Source0: https://www.imagemagick.org/download/ImageMagick-%{VER}-%{Patchlevel}.tar.xz -Patch0: https://github.com/ImageMagick/ImageMagick6/commit/218d6abc4e36596c90a07463bfb2ab9e8312efbb.patch - BuildRequires: gcc BuildRequires: gcc-c++ %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -381,9 +379,6 @@ however. %prep %setup -q -n %{libname}-%{VER}-%{Patchlevel} -%if 0%{?rhel} == 6 -%patch0 -p1 -R -%endif # for %%doc mkdir Magick++/examples @@ -642,6 +637,10 @@ fi %changelog +* Wed Jun 24 2020 Remi Collet - 6.9.11.21-1 +- update to version 6.9.11 patch level 21 still affected by + https://github.com/ImageMagick/ImageMagick6/issues/85 + * Mon Jun 22 2020 Remi Collet - 6.9.11.20-1 - update to version 6.9.11 patch level 20 - revert upstream commit on EL-6 to fix broken build with old libtiff -- cgit