From 8149d9eabf26a6e429615db8658e0452fc1954b6 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 25 Apr 2020 08:46:40 +0300 Subject: [PATCH] Release notes for 7.1.2 --- CHANGES.rst | 3 +++ docs/releasenotes/7.1.2.rst | 16 ++++++++++++++++ docs/releasenotes/index.rst | 1 + 3 files changed, 20 insertions(+) create mode 100644 docs/releasenotes/7.1.2.rst diff --git a/CHANGES.rst b/CHANGES.rst index 29a3fb69c..2b3141ff3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,9 @@ Changelog (Pillow) - Fix pickling WebP #4561 [hugovk, radarhere] +7.1.2 (2020-04-25) +------------------ + - Raise an EOFError when seeking too far in PNG #4528 [radarhere] diff --git a/docs/releasenotes/7.1.2.rst b/docs/releasenotes/7.1.2.rst new file mode 100644 index 000000000..c9d0d54eb --- /dev/null +++ b/docs/releasenotes/7.1.2.rst @@ -0,0 +1,16 @@ +7.1.2 +----- + +Fix another regression seeking PNG files +======================================== + +This fixes a regression introduced in 7.1.0 when adding support for APNG files. + +When calling ``seek(n)`` on a regular PNG where ``n > 0``, it failed to raise an +``EOFError`` as it should have done, resulting in: + +.. code-block:: python + + AttributeError: 'NoneType' object has no attribute 'read' + +Pillow 7.1.2 now raises the correct exception. diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index 7cdb58494..575931c4d 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 2 + 7.1.2 7.1.1 7.1.0 7.0.0