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

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
GSoC-2018-nikhil
Werner Lemberg 7 years ago
parent b98133a4e9
commit ff1c28f6c0
  1. 8
      ChangeLog
  2. 3
      src/pcf/pcfread.c

@ -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.

@ -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', */

Loading…
Cancel
Save