* src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.

Reported as

  https://bugs.chromium.org/p/chromium/issues/detail?id=772775
This commit is contained in:
Werner Lemberg 2017-10-09 07:45:03 +02:00
parent b7e43f7d7d
commit 6498551921
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2017-10-09 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
Reported as
https://bugs.chromium.org/p/chromium/issues/detail?id=772775
2017-10-08 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Integer overflows.

View File

@ -540,8 +540,8 @@
for ( n = 0; n < outline->n_points; n++ )
{
vec->x += xOffset;
vec->y += yOffset;
vec->x = ADD_LONG( vec->x, xOffset );
vec->y = ADD_LONG( vec->y, yOffset );
vec++;
}
}