Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed freeing pointer in ImageDraw.Outline.transform #5909

Merged
merged 1 commit into from Dec 27, 2021

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Dec 27, 2021

The following code will crash when trying to free a pointer.

>>> from PIL import ImageDraw
>>> o = ImageDraw.Outline()
>>> o.line(0, 0)
>>> o.transform((0, 0, 0, 0, 0, 0))

This PR fixes it.

@radarhere radarhere added Bug automerge labels Dec 27, 2021
@radarhere radarhere merged commit 7adab8f into python-pillow:main Dec 27, 2021
51 checks passed
@radarhere radarhere deleted the transform branch Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant