ref: bec14f688925467be708f01378fbbf82e6b19b42
parent: b9bd2d14e2836122028b4f41eee937fc31e6b93c
author: Ewald Hew <[email protected]>
date: Wed Nov 22 13:57:56 EST 2017
* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2017-11-22 Ewald Hew <[email protected]>
+ * 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 <[email protected]>
+
[psaux] Fix CFF advance widths. (#52466)
Glyph advance widths were being written to the new `PS_Decoder' but not
--- a/src/psaux/psft.c
+++ b/src/psaux/psft.c
@@ -95,7 +95,8 @@
FT_ASSERT( decoder );
- *decoder->glyph_width = cf2_fixedToInt( width );
+ if ( !decoder->builder.is_t1 )
+ *decoder->glyph_width = cf2_fixedToInt( width );
}