From 3e8a2283f5119376098a0ec66f876866ff5cea4d Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 11 Dec 2018 23:54:17 +0100 Subject: [PATCH] * 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. --- ChangeLog | 8 ++++++++ src/truetype/ttgload.c | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d6946b8a9..4ad8e5cc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-12-11 Werner Lemberg + + * 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 [bdf] Ignore data after `ENDFONT'. diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 1d84450a8..ec0d4fcc1 100644 --- 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 */