ref: c61b3596d4bb5487825b9fa031e219a08f8911f9
parent: 332da87d99947c47db93def43b50fdbe63a1bef6
author: LIU Sun-Liang <[email protected]>
date: Sun Jan 30 11:29:45 EST 2011
[truetype]: Fix behaviour of MIAP for invalid arguments. * src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in case of error.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-30 LIU Sun-Liang <[email protected]>
+
+ [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 <[email protected]>
[truetype] Fix handling of MIRP instruction.
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -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;
}