forked from minhngoc25a/freetype2
* 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:
parent
b98133a4e9
commit
ff1c28f6c0
|
@ -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…
Reference in New Issue