forked from minhngoc25a/freetype2
[truetype] Fix SCANTYPE instruction (#49394).
* src/truetype/ttinterp.c (Ins_SCANTYPE): Only use lower 16bits.
This commit is contained in:
parent
577414030a
commit
5081674c5f
|
@ -1,3 +1,9 @@
|
|||
2016-10-22 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[truetype] Fix SCANTYPE instruction (#49394).
|
||||
|
||||
* src/truetype/ttinterp.c (Ins_SCANTYPE): Only use lower 16bits.
|
||||
|
||||
2016-10-22 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Improve handling of invalid post 2.5 tables [#49393].
|
||||
|
|
|
@ -5173,14 +5173,14 @@
|
|||
/* */
|
||||
/* SCANTYPE[]: SCAN TYPE */
|
||||
/* Opcode range: 0x8D */
|
||||
/* Stack: uint32? --> */
|
||||
/* Stack: uint16 --> */
|
||||
/* */
|
||||
static void
|
||||
Ins_SCANTYPE( TT_ExecContext exc,
|
||||
FT_Long* args )
|
||||
{
|
||||
if ( args[0] >= 0 )
|
||||
exc->GS.scan_type = (FT_Int)args[0];
|
||||
exc->GS.scan_type = (FT_Int)args[0] & 0xFFFFU;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue