File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Png text chunk size limits
1414To prevent potential denial of service attacks using compressed text
1515chunks, there are now limits to the decompressed size of text chunks
1616decoded from PNG images. If the limits are exceeded when opening a PNG
17- image a `` ValueError ` ` will be raised.
17+ image a :py:exc: ` ValueError ` will be raised.
1818
1919Individual text chunks are limited to
2020:py:attr: `PIL.PngImagePlugin.MAX_TEXT_CHUNK `, set to 1MB by
Original file line number Diff line number Diff line change 118.3.2
22-----
33
4+ Security
5+ ========
6+
7+ * :cve: `CVE-2021-23437 `: Avoid a potential ReDoS (regular expression denial of service)
8+ in :py:class: `~PIL.ImageColor `'s :py:meth: `~PIL.ImageColor.getrgb ` by raising
9+ :py:exc: `ValueError ` if the color specifier is too long. Present since Pillow 5.2.0.
10+
11+ * Fix 6-byte out-of-bounds (OOB) read. The previous bounds check in ``FliDecode.c ``
12+ incorrectly calculated the required read buffer size when copying a chunk, potentially
13+ reading six extra bytes off the end of the allocated buffer from the heap. Present
14+ since Pillow 7.1.0. This bug was found by Google's `OSS-Fuzz `_ `CIFuzz `_ runs.
15+
416Other Changes
517=============
618
@@ -24,4 +36,6 @@ Fixed regressions
2436
2537* Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library (:pr: `5651 `).
2638
39+ .. _OSS-Fuzz : https://github.com/google/oss-fuzz
40+ .. _CIFuzz : https://google.github.io/oss-fuzz/getting-started/continuous-integration/
2741.. _no ABI changes : https://www.python.org/downloads/release/python-3100rc1/
You can’t perform that action at this time.
0 commit comments