[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Feb 8 23:22:37 UTC 2018


 src/hb-ot-shape-fallback.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c1ab95dd907b1c4a2e2de17447683fe803fe4087
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Feb 8 17:22:07 2018 -0600

    Fix overflow in space fallback shaping
    
    Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=657466

diff --git a/src/hb-ot-shape-fallback.cc b/src/hb-ot-shape-fallback.cc
index 0e5b20f1..c7b46053 100644
--- a/src/hb-ot-shape-fallback.cc
+++ b/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:


More information about the HarfBuzz mailing list