* 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.
This commit is contained in:
Werner Lemberg 2018-12-11 23:54:17 +01:00
parent 0c83ba6d61
commit 3e8a2283f5
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2018-12-11 Werner Lemberg <wl@gnu.org>
* 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 <wl@gnu.org>
[bdf] Ignore data after `ENDFONT'.

View File

@ -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 */