* src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
This commit is contained in:
Armin Hasitzka 2018-09-10 23:41:04 +01:00
parent fea435fbf8
commit 7b855ed9cf
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2018-09-10 Armin Hasitzka <prince.cherusker@gmail.com>
* src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
2018-09-09 Ben Wagner <bungeman@google.com>
* builds/freetype.mk (refdoc-venv): Ensure python version (#54631).

View File

@ -1187,7 +1187,7 @@
/* compute integer stem positions in font units */
for ( n = 0; n < count * 2; n++ )
{
y += coords[n];
y = ADD_LONG( y, coords[n] );
stems[n] = FIXED_TO_INT( y );
}