[truetype]: Fix behaviour of MIAP for invalid arguments.

* src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
case of error.
This commit is contained in:
LIU Sun-Liang 2011-01-30 16:29:45 +01:00 committed by Werner Lemberg
parent 332da87d99
commit c61b3596d4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-01-30 LIU Sun-Liang <sunliang_liu@foxitsoftware.com>
[truetype]: Fix behaviour of MIAP for invalid arguments.
* src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
case of error.
2011-01-18 Werner Lemberg <wl@gnu.org>
[truetype] Fix handling of MIRP instruction.

View File

@ -5996,7 +5996,7 @@
{
if ( CUR.pedantic_hinting )
CUR.error = TT_Err_Invalid_Reference;
return;
goto Fail;
}
/* XXX: UNDOCUMENTED! */
@ -6042,6 +6042,7 @@
CUR_Func_move( &CUR.zp0, point, distance - org_dist );
Fail:
CUR.GS.rp0 = point;
CUR.GS.rp1 = point;
}