ref: 3e8a2283f5119376098a0ec66f876866ff5cea4d
parent: 0c83ba6d61e686ca55c3cc763d48a38cb4d7ca67
author: Werner Lemberg <[email protected]>
date: Tue Dec 11 18:54:17 EST 2018
* src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test. `control_len' only gets its value from `n_ins' (and vice versa), which is always read as `unsigned short' and thus can't be larger than 0xFFFF.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-12-11 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.
+
+ `control_len' only gets its value from `n_ins' (and vice versa),
+ which is always read as `unsigned short' and thus can't be larger
+ than 0xFFFF.
+
2018-12-04 Werner Lemberg <[email protected]>
[bdf] Ignore data after `ENDFONT'.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -816,12 +816,6 @@
#ifdef TT_USE_BYTECODE_INTERPRETER
- if ( loader->glyph->control_len > 0xFFFFL )
- {
- FT_TRACE1(( "TT_Hint_Glyph: too long instructions" ));
- FT_TRACE1(( " (0x%lx byte) is truncated\n",
- loader->glyph->control_len ));
- }
n_ins = loader->glyph->control_len;
/* save original point position in org */