* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
This commit is contained in:
Ewald Hew 2017-11-22 18:57:56 +08:00
parent b9bd2d14e2
commit bec14f6889
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2017-11-22 Ewald Hew <ewaldhew@gmail.com>
* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
2017-11-22 Ewald Hew <ewaldhew@gmail.com>
[psaux] Fix CFF advance widths. (#52466)

View File

@ -95,7 +95,8 @@
FT_ASSERT( decoder );
*decoder->glyph_width = cf2_fixedToInt( width );
if ( !decoder->builder.is_t1 )
*decoder->glyph_width = cf2_fixedToInt( width );
}