Skip to content

Commit

Permalink
Skip test_realloc_overflow unless libtiff 4.0.4 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and hugovk committed May 17, 2022
1 parent 43e2ee0 commit 1a28662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/test_file_libtiff.py
Expand Up @@ -18,6 +18,7 @@
hopper,
mark_if_feature_version,
skip_unless_feature,
skip_unless_feature_version,
)


Expand Down Expand Up @@ -991,6 +992,7 @@ def test_sampleformat_not_corrupted(self):
with Image.open(out) as im:
im.load()

@skip_unless_feature_version("libtiff", "4.0.4")
def test_realloc_overflow(self):
TiffImagePlugin.READ_LIBTIFF = True
with Image.open("Tests/images/tiff_overflow_rows_per_strip.tif") as im:
Expand Down

1 comment on commit 1a28662

@radarhere
Copy link
Member Author

@radarhere radarhere commented on 1a28662 Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added to workaround https://alas.aws.amazon.com/cve/html/CVE-2022-34266.html. The problem was fixed in libtiff-4.0.3-35.amzn2.0.2, and this workaround was reverted in #6354

Please sign in to comment.