Fix overflow in space fallback shaping

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=657466
pull/766/head
Behdad Esfahbod 7 years ago
parent b220b5a444
commit c1ab95dd90
  1. 2
      src/hb-ot-shape-fallback.cc

@ -527,7 +527,7 @@ _hb_ot_shape_fallback_spaces (const hb_ot_shape_plan_t *plan,
break;
case t::SPACE_4_EM_18:
pos[i].x_advance = font->x_scale * 4 / 18;
pos[i].x_advance = (int64_t) font->x_scale * 4 / 18;
break;
case t::SPACE_FIGURE:

Loading…
Cancel
Save