forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request python-pillow#2 from ActiveState/jeremyp/cve-2020-…
…11538 CVE-2020-11538: fix SGI-RLE buffer overflow
- Loading branch information
Showing
8 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
import pytest | ||
from PIL import Image | ||
|
||
|
||
def test_crashes(): | ||
with open("Tests/images/sgi_crash.bin", "rb") as f: | ||
im = Image.open(f) | ||
with pytest.raises(IOError): | ||
im.load() | ||
|
||
|
||
def test_overrun_crashes(): | ||
with open("Tests/images/sgi_overrun_expandrowF04.bin", "rb") as f: | ||
im = Image.open(f) | ||
with pytest.raises(IOError): | ||
im.load() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
6.2.2.1 | ||
------- | ||
|
||
Security | ||
======== | ||
|
||
This release addresses CVE-2020-11538. | ||
|
||
CVE-2019-11538 is regarding SGI images. An out-of-bounds read can occur in the | ||
parsing of SGI image files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Release Notes | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
6.2.2.1 | ||
6.2.2 | ||
6.2.1 | ||
6.2.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Master version for Pillow | ||
__version__ = "6.2.2" | ||
__version__ = "6.2.2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters