[cff] Fix numeric overflow.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988

* src/cff/cffparse.c (cff_parser_run)
[CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.
This commit is contained in:
Werner Lemberg 2018-10-29 21:11:36 +01:00
parent acb19ed4e9
commit ba62f9d8f5
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2018-10-29 Werner Lemberg <wl@gnu.org>
[cff] Fix numeric overflow.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988
* src/cff/cffparse.c (cff_parser_run)
[CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.
2018-10-27 Alexei Podtelezhnikov <apodtele@gmail.com>
[sfnt] Make `head' timestamps unsigned.

View File

@ -1259,7 +1259,7 @@
if ( *stack < 0 )
{
num = (FT_ULong)-*stack;
num = (FT_ULong)NEG_LONG( *stack );
neg = 1;
}
else