FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Catch OSError for FreeType >= 2.14.0 by radarhere · Pull Request #9481 · python-pillow/Pillow · GitHub

Catch OSError for FreeType >= 2.14.0 - #9481

Closed
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:freetype
Closed

Catch OSError for FreeType >= 2.14.0#9481
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:freetype

Conversation

radarhere commented Mar 20, 2026
edited
Loading

Copy link
Copy Markdown
Member

Since #8324 was merged, the modified test has started failing in main - https://github.com/python-pillow/Pillow/actions/runs/23347044302/job/67915216500#step:13:2864

Testing, I find that FreeType 2.13.3 passes, but for FreeType >= 2.14.0, FT_New_Face() returns Invalid_File_Format, a.k.a "broken file". The test file is a font generated by OSS-Fuzz though, so there is no reason it has to be a valid file.

I've updated the test to specifically catch "broken file" for FreeType >= 2.14.0.

As background, the test was originally added in #6846. Coincidentally, it also had a with pytest.raises(OSError):, intending to catch a "Bitmap missing for glyph" error raised by Pillow, but #8324 removed the error itsell.

Copy link
Copy Markdown
Member Author

I am closing this in favour of #9483

radarhere closed this Mar 21, 2026
radarhere deleted the freetype branch March 21, 2026 12:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL