summaryrefslogtreecommitdiff
path: root/src/base/ftoutln.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2017-10-09 07:45:03 +0200
committerWerner Lemberg <wl@gnu.org>2017-10-09 07:45:03 +0200
commit64985519210a1b62fcfccf394e6ab0f7bfe9be09 (patch)
tree1070731ddfeab6f6baa681a1b057e3ebd08fbf08 /src/base/ftoutln.c
parentb7e43f7d7dc9a2fdb488c989162272e840c88bb8 (diff)
downloadfreetype2-64985519210a1b62fcfccf394e6ab0f7bfe9be09.tar.gz
* src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
Reported as https://bugs.chromium.org/p/chromium/issues/detail?id=772775
Diffstat (limited to 'src/base/ftoutln.c')
-rw-r--r--src/base/ftoutln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 9ceb9cf1b..cbbcb859a 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -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++;
}
}