Fixed deallocating mask images by radarhere · Pull Request #7246 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@radarhere

Copy link Copy Markdown

Member

Corrects a problem from #7206

@hugovk hugovk added the automerge

Automatically merge PRs that are ready

label

Jul 1, 2023
def fill(mode, size):
nonlocal im

im = Image.core.fill(mode, size)
Copy link Copy Markdown

Contributor

Choose a reason for hiding this comment

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

It might make sense to move the decompression bomb check here to simplify the C function.

Copy link Copy Markdown

Member Author

Choose a reason for hiding this comment

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

I've created #7247 for this.

nulano reacted with thumbs up emoji

@radarhere radarhere merged commit c827f3b into python-pillow:main

Jul 1, 2023

@radarhere radarhere deleted the deallocate branch

July 1, 2023 10:36

@radarhere

Copy link Copy Markdown

Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hugovk hugovk hugovk approved these changes

+1 more reviewer

@nulano nulano nulano left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

automerge

Automatically merge PRs that are ready

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@radarhere @hugovk @nulano