[psaux] Mask numeric overflow.

* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
overflow.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
This commit is contained in:
Armin Hasitzka 2019-02-21 10:04:28 +00:00
parent a346abc093
commit 5e3a38b194
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,14 @@
2019-02-21 Armin Hasitzka <prince.cherusker@gmail.com>
[psaux] Mask numeric overflow.
* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
overflow.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
2019-02-16 Wink Saville <wink@saville.com>
* src/autofit/afwarp.h (af_warper_compute): Fix declaration.

View File

@ -1556,9 +1556,9 @@
}
if ( dx < 0 )
dx = -dx;
dx = NEG_LONG( dx );
if ( dy < 0 )
dy = -dy;
dy = NEG_LONG( dy );
/* strange test, but here it is... */
horizontal = ( dx > dy );