ref: 63be40bccf02bd280da14c0249658e5531b3ea20
parent: b0103677be2eac55f4a9c966d2ab4a5d597a57c6
author: Ben Wagner <[email protected]>
date: Fri Sep 22 20:44:59 EDT 2017
[truetype] Really fix #52082. * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-23 Ben Wagner <[email protected]>
+
+ [truetype] Really fix #52082.
+
+ * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+
2017-09-23 Werner Lemberg <[email protected]>
[otvalid] Handle `GDEF' v1.2 and v1.3 tables.
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -6079,8 +6079,11 @@
/* single width cut-in test */
/* |org_dist - single_width_value| < single_width_cutin */
- if ( org_dist < exc->GS.single_width_value + exc->GS.single_width_cutin ||
- org_dist > exc->GS.single_width_value - exc->GS.single_width_cutin )
+ if ( exc->GS.single_width_cutin > 0 &&
+ ( org_dist < exc->GS.single_width_value +
+ exc->GS.single_width_cutin ||
+ org_dist > exc->GS.single_width_value -
+ exc->GS.single_width_cutin ) )
{
if ( org_dist >= 0 )
org_dist = exc->GS.single_width_value;