Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/fonts/fuzz_font-5203009437302784
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
STARTFONT
FONT ÿ
SIZE 10
FONTBOUNDINGBOX
CHARS
FONTBOUNDINGBOX 1 1 0 0
CHARS 1
STARTCHAR
ENCODING
ENCODING 65
BBX 2 5
ENDCHAR
ENDFONT
3 changes: 0 additions & 3 deletions Tests/test_font_crash.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from PIL import Image, ImageDraw, ImageFont

from .helper import skip_unless_feature_version


class TestFontCrash:
def _fuzz_font(self, font: ImageFont.FreeTypeFont) -> None:
Expand All @@ -16,7 +14,6 @@ def _fuzz_font(self, font: ImageFont.FreeTypeFont) -> None:
draw.multiline_textbbox((10, 10), "ABC\nAaaa", font, stroke_width=2)
draw.text((10, 10), "Test Text", font=font, fill="#000")

@skip_unless_feature_version("freetype2", "2.12.0")
def test_segfault(self) -> None:
font = ImageFont.truetype("Tests/fonts/fuzz_font-5203009437302784")
self._fuzz_font(font)
Loading