Skip to content

Commit 0846bfa

Browse files
committed
Add to release notes
1 parent 799a6a0 commit 0846bfa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/releasenotes/9.3.0.rst

+11
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ decode the data in its natural CMYK mode, then convert it to RGB and rearrange
4949
the channels afterwards. Trying to load the data in an incorrect mode could
5050
result in a segmentation fault. This issue was introduced in Pillow 9.1.0.
5151

52+
Limit SAMPLESPERPIXEL to avoid runtime DOS
53+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
55+
A large value in the ``SAMPLESPERPIXEL`` tag could lead to a memory and runtime DOS in
56+
``TiffImagePlugin.py`` when setting up the context for image decoding.
57+
This was introduced in Pillow 9.2.0, found with `OSS-Fuzz`_ and fixed by limiting
58+
``SAMPLESPERPIXEL`` to the number of planes that we can decode.
59+
60+
5261
Other Changes
5362
=============
5463

@@ -88,3 +97,5 @@ Show all frames with ImageShow
8897

8998
When calling :py:meth:`~PIL.Image.Image.show` or using
9099
:py:mod:`~PIL.ImageShow`, all frames will now be shown.
100+
101+
.. _OSS-Fuzz: https://github.com/google/oss-fuzz

0 commit comments

Comments
 (0)