ref: ff1c28f6c01e3068903432cfa157b5a38d015517
parent: b98133a4e9831544fec776757b2a6745d4ebc51e
author: Werner Lemberg <[email protected]>
date: Tue Jul 24 05:59:23 EDT 2018
* src/pcf/pcfread.c (pcf_get_encodings): Thinko. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-07-24 Werner Lemberg <[email protected]>
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Thinko.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
+
2018-07-22 Werner Lemberg <[email protected]>
* src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -1041,6 +1041,9 @@
FT_TRACE0(( "pcf_get_encodings:"
" Invalid default character set to %d\n",
face->defaultChar ));
+
+ defaultCharRow = face->defaultChar >> 8;
+ defaultCharCol = face->defaultChar & 0xFF;
}
/* FreeType mandates that glyph index 0 is the `undefined glyph', */