From 483007fcd94a8f2e85ab5329642abb8bc936bb23 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 29 Sep 2015 11:22:15 +0200 Subject: [PATCH] [pshinter] Avoid harmless overflow (#45984). * src/pshinter/pshglob.c (psh_blues_set_zones): Fix it. --- ChangeLog | 6 ++++++ src/pshinter/pshglob.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e294f205d..021a34a90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-09-29 Werner Lemberg + + [pshinter] Avoid harmless overflow (#45984). + + * src/pshinter/pshglob.c (psh_blues_set_zones): Fix it. + 2015-09-28 Werner Lemberg [autofit] Add support for Lao script. diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c index 6723b717e..4616bdc6c 100644 --- a/src/pshinter/pshglob.c +++ b/src/pshinter/pshglob.c @@ -339,7 +339,7 @@ bot = zone[1].org_bottom; delta = bot - top; - if ( delta < 2 * fuzz ) + if ( delta / 2 < fuzz ) zone[0].org_top = zone[1].org_bottom = top + delta / 2; else {