Skip to content

Commit 0f76dc5

Browse files
authored
fix(font): minimum length check (woff)
1 parent a50eddc commit 0f76dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filetype/types/font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self):
1919
)
2020

2121
def match(self, buf):
22-
return (len(buf) > 3 and
22+
return (len(buf) > 7 and
2323
buf[0] == 0x77 and
2424
buf[1] == 0x4F and
2525
buf[2] == 0x46 and

0 commit comments

Comments
 (0)