* src/pcf/pcfread.c (pcf_get_encodings): Thinko.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
This commit is contained in:
Werner Lemberg 2018-07-24 09:59:23 +02:00
parent b98133a4e9
commit ff1c28f6c0
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2018-07-24 Werner Lemberg <wl@gnu.org>
* 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 <wl@gnu.org>
* src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.

View File

@ -1041,6 +1041,9 @@ THE SOFTWARE.
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', */