* 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:
parent
0c83ba6d61
commit
3e8a2283f5
|
@ -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>
|
2018-12-04 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[bdf] Ignore data after `ENDFONT'.
|
[bdf] Ignore data after `ENDFONT'.
|
||||||
|
|
|
@ -816,12 +816,6 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef TT_USE_BYTECODE_INTERPRETER
|
#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;
|
n_ins = loader->glyph->control_len;
|
||||||
|
|
||||||
/* save original point position in org */
|
/* save original point position in org */
|
||||||
|
|
Loading…
Reference in New Issue