summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2018-10-02 16:36:49 +0200
committerWerner Lemberg <wl@gnu.org>2018-10-02 16:36:49 +0200
commit83fc524dfc93bfabee681ea2484b93ad1f66ca15 (patch)
tree676a18612e5634d3329f1fddb29756e690f67013 /src
parent877aa1b2cc662978aae61ed4d5c6ea8ba56b2fe7 (diff)
downloadfreetype2-83fc524dfc93bfabee681ea2484b93ad1f66ca15.tar.gz
[pshinter] Handle numeric overflow.
Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10550 * src/pshinter/pshglob.c (psh_blues_snap_stem): Mask numeric overflow.
Diffstat (limited to 'src')
-rw-r--r--src/pshinter/pshglob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index 5f5ae2df1..8706e2bd3 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -591,7 +591,7 @@
for ( ; count > 0; count--, zone-- )
{
- delta = zone->org_top - stem_bot;
+ delta = SUB_LONG( zone->org_top, stem_bot );
if ( delta < -blues->blue_fuzz )
break;