2020-12-16 19:21:37 +03:00
|
|
|
8.1.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
Deprecations
|
|
|
|
============
|
|
|
|
|
|
|
|
FreeType 2.7
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Support for FreeType 2.7 is deprecated and will be removed in Pillow 9.0.0 (2022-01-02),
|
|
|
|
when FreeType 2.8 will be the minimum supported.
|
|
|
|
|
|
|
|
We recommend upgrading to at least FreeType `2.10.4`_, which fixed a severe
|
|
|
|
vulnerability introduced in FreeType 2.6 (:cve:`CVE-2020-15999`).
|
|
|
|
|
|
|
|
.. _2.10.4: https://sourceforge.net/projects/freetype/files/freetype2/2.10.4/
|
|
|
|
|
2021-01-02 03:00:33 +03:00
|
|
|
Makefile
|
|
|
|
^^^^^^^^
|
|
|
|
|
|
|
|
The 'install-venv' target has been deprecated.
|
|
|
|
|
2020-12-16 19:21:37 +03:00
|
|
|
API Additions
|
|
|
|
=============
|
|
|
|
|
2020-12-24 05:13:44 +03:00
|
|
|
Append images to ICO
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
2020-12-16 19:21:37 +03:00
|
|
|
|
2020-12-24 05:13:44 +03:00
|
|
|
When saving an ICO image, the file may contain versions of the image at different
|
|
|
|
sizes. By default, Pillow will scale down the main image to create these copies.
|
|
|
|
|
|
|
|
With this release, a list of images can be provided to the ``append_images`` parameter
|
|
|
|
when saving, to replace the scaled down versions. This is the same functionality that
|
|
|
|
already exists for the ICNS format.
|
2020-12-16 19:21:37 +03:00
|
|
|
|
|
|
|
Security
|
|
|
|
========
|
|
|
|
|
2021-01-02 13:27:50 +03:00
|
|
|
This release includes security fixes.
|
|
|
|
|
2021-01-02 14:00:35 +03:00
|
|
|
* An out-of-bounds read when saving TIFFs with custom metadata through LibTIFF
|
2021-01-02 13:27:50 +03:00
|
|
|
* An out-of-bounds read when saving a GIF of 1px width
|
2021-01-02 14:00:35 +03:00
|
|
|
* :cve:`CVE-2020-35653` Buffer read overrun in PCX decoding
|
2021-01-02 13:27:50 +03:00
|
|
|
|
2021-01-02 14:00:35 +03:00
|
|
|
The PCX image decoder used the reported image stride to calculate the row buffer,
|
2021-01-02 13:27:50 +03:00
|
|
|
rather than calculating it from the image size. This issue dates back to the PIL fork.
|
|
|
|
Thanks to Google's OSS-Fuzz project for finding this.
|
|
|
|
|
|
|
|
* :cve:`CVE-2020-35654` Fix TIFF OOB Write error
|
|
|
|
|
2021-01-02 14:00:35 +03:00
|
|
|
OOB Write in TiffDecode.c when reading corrupt YCbCr files in some LibTIFF versions
|
|
|
|
(4.1.0/Ubuntu 20.04, but not 4.0.9/Ubuntu 18.04). In some cases LibTIFF's
|
2021-01-02 13:27:50 +03:00
|
|
|
interpretation of the file is different when reading in RGBA mode, leading to an Out of
|
|
|
|
bounds write in TiffDecode.c. This potentially affects Pillow versions from 6.0.0 to
|
2021-01-02 14:00:35 +03:00
|
|
|
8.0.1, depending on the version of LibTIFF. This was reported through Tidelift.
|
2021-01-02 13:27:50 +03:00
|
|
|
|
|
|
|
* :cve:`CVE-2020-35655` Fix for SGI Decode buffer overrun
|
|
|
|
|
2021-01-02 14:00:35 +03:00
|
|
|
4 byte read overflow in SGIRleDecode.c, where the code was not correctly checking the
|
2021-01-02 13:27:50 +03:00
|
|
|
offsets and length tables. Independently reported through Tidelift and Google's OSS-Fuzz.
|
|
|
|
This vulnerability covers Pillow versions 4.3.0->8.0.1.
|
2020-12-30 04:43:13 +03:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
OpenJPEG in the macOS and Linux wheels has been updated from 2.3.1 to 2.4.0, including
|
|
|
|
security fixes.
|
2020-12-16 19:21:37 +03:00
|
|
|
|
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
2021-01-02 03:00:33 +03:00
|
|
|
Makefile
|
|
|
|
^^^^^^^^
|
|
|
|
|
|
|
|
The 'co' target has been removed.
|
|
|
|
|
2020-12-25 10:08:48 +03:00
|
|
|
PyPy wheels
|
|
|
|
^^^^^^^^^^^
|
2020-12-16 19:21:37 +03:00
|
|
|
|
2020-12-25 10:08:48 +03:00
|
|
|
Wheels have been added for PyPy 3.7.
|
2021-01-02 01:39:04 +03:00
|
|
|
|
|
|
|
PySide6
|
|
|
|
^^^^^^^
|
|
|
|
|
|
|
|
Support has been added for PySide6. If it is installed, it will be used instead of
|
|
|
|
PyQt5 or PySide2, since it is based on a newer Qt.
|