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

Fix segfault: do not destroy glyph while its bitmap is used #4160

Merged
merged 2 commits into from Nov 2, 2019
Merged

Fix segfault: do not destroy glyph while its bitmap is used #4160

merged 2 commits into from Nov 2, 2019

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Oct 21, 2019

Fix segfault in _imagingft.font_render during TestImageDraw::test_stroke.

Fixes #4156 .

Changes proposed in this pull request:

Do not destroy glyph while its bitmap is used.

@cgohlke cgohlke changed the title Do not destroy glyph while its bitmap is used Fix segfault: do not destroy glyph while its bitmap is used Oct 26, 2019
@radarhere
Copy link
Member

Thanks very much. I've added a commit to use the same condition that sets the glyph.

@radarhere radarhere merged commit b0eb5e1 into python-pillow:master Nov 2, 2019
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.

test_stroke segfault
2 participants