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

Bug#926690: marked as done (unblock: pillow/5.4.1-2)



Your message dated Tue, 09 Apr 2019 08:38:06 +0000
with message-id <E1hDmGc-0001xk-4Z@respighi.debian.org>
and subject line unblock pillow
has caused the Debian Bug report #926690,
regarding unblock: pillow/5.4.1-2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
926690: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926690
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package pillow

Matthias fixed the important bug #926552 (fails loading some PNG files)
in pillow/5.4.1-2. While the bug is not release critical, it breaks
operation of dedup.debian.net. The bug is well understood upstream and
Matthias essentially cherry-picked the relevant upstream patch. Would
you consider including this change in buster?

unblock pillow/5.4.1-2

Thank you for considering

Helmut
diff --minimal -Nru pillow-5.4.1/debian/changelog pillow-5.4.1/debian/changelog
--- pillow-5.4.1/debian/changelog	2019-01-18 11:05:56.000000000 +0100
+++ pillow-5.4.1/debian/changelog	2019-04-07 02:53:28.000000000 +0200
@@ -1,3 +1,9 @@
+pillow (5.4.1-2) unstable; urgency=medium
+
+  * Allow for unknown PNG chunks after image data. Closes: #926552.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 07 Apr 2019 02:53:28 +0200
+
 pillow (5.4.1-1) unstable; urgency=medium
 
   * New upstream version.
diff --minimal -Nru pillow-5.4.1/debian/patches/4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf.diff pillow-5.4.1/debian/patches/4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf.diff
--- pillow-5.4.1/debian/patches/4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf.diff	1970-01-01 01:00:00.000000000 +0100
+++ pillow-5.4.1/debian/patches/4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf.diff	2019-04-07 02:53:18.000000000 +0200
@@ -0,0 +1,43 @@
+Allow for unknown PNG chunks after image data
+
+diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py
+index c94f8eaad..840174444 100644
+--- a/Tests/test_file_png.py
++++ b/Tests/test_file_png.py
+@@ -596,6 +596,7 @@ def test_apng(self):
+         im = Image.open("Tests/images/iss634.apng")
+         self.assertEqual(im.get_format_mimetype(), 'image/apng')
+ 
++        # This also tests reading unknown PNG chunks (fcTL and fdAT) in load_end
+         expected = Image.open("Tests/images/iss634.webp")
+         self.assert_image_similar(im, expected, 0.23)
+ 
+diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py
+index f3a2eaf21..0669ab216 100644
+--- a/src/PIL/PngImagePlugin.py
++++ b/src/PIL/PngImagePlugin.py
+@@ -533,14 +533,6 @@ def chunk_acTL(self, pos, length):
+         self.im_custom_mimetype = 'image/apng'
+         return s
+ 
+-    def chunk_fcTL(self, pos, length):
+-        s = ImageFile._safe_read(self.fp, length)
+-        return s
+-
+-    def chunk_fdAT(self, pos, length):
+-        s = ImageFile._safe_read(self.fp, length)
+-        return s
+-
+ 
+ # --------------------------------------------------------------------
+ # PNG reader
+@@ -682,6 +674,9 @@ def load_end(self):
+                 break
+             except EOFError:
+                 ImageFile._safe_read(self.fp, length)
++            except AttributeError:
++                logger.debug("%r %s %s (unknown)", cid, pos, length)
++                ImageFile._safe_read(self.fp, length)
+         self._text = self.png.im_text
+         self.png.close()
+         self.png = None
diff --minimal -Nru pillow-5.4.1/debian/patches/series pillow-5.4.1/debian/patches/series
--- pillow-5.4.1/debian/patches/series	2019-01-18 11:05:56.000000000 +0100
+++ pillow-5.4.1/debian/patches/series	2019-04-07 02:53:28.000000000 +0200
@@ -1,3 +1,4 @@
 toplevel-setup.py
 generate-webp-file
 js-script-file.diff
+4e0a73b4faf4c0b16c6b3912b64f4ad7a6c99acf.diff

--- End Message ---
--- Begin Message ---
Unblocked pillow.

--- End Message ---

Reply to: