Skip to content

Removed OSError in favour of DecompressionBombError for BMP - #4966

Merged
hugovk merged 2 commits into
python-pillow:masterfrom
radarhere:decompression
Oct 12, 2020
Merged

hugovk merged 2 commits into
python-pillow:masterfrom
radarhere:decompression

Conversation

@radarhere

Copy link
Copy Markdown
Member

Resolves #4939

At the moment, a very large BMP file does not raise a DecompressionBombError, but instead an OSError. This PR changes it so that the more standard DecompressionBombError is raised.

@radarhere radarhere changed the title Removed OSError in favour of DecompressionBombError Removed OSError in favour of DecompressionBombError for BMP Oct 12, 2020

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Let's also put this in the release notes.

@hugovk
hugovk merged commit fee6baf into python-pillow:master Oct 12, 2020
@radarhere
radarhere deleted the decompression branch October 12, 2020 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Making BMP pixel size limit configurable

2 participants