-
Notifications
You must be signed in to change notification settings - Fork 255
Commit 93a8d4b
Do not retrieve the number of contours for empty glyphs
Before this change php-font-lib always read the number of contours for a glyph. If a glyph has no data the read information would be incorrect. This could lead to invalid parsing of the glyph since the data may not represent the actual glyph format (simple). In fact, the data could be from outside the glyf table entirely. If the glyph was positioned as the last byte in the font a read error would be thrown.1 parent a5c850b commit 93a8d4b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | - | ||
51 | + | ||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments