* src/base/ftobjs.c (FT_Load_Glyph): Fix boundary check for
`glyph_index'.
This commit is contained in:
parent
9f36499fa7
commit
2cba64d30d
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
2003-04-28 David Turner <david@freetype.org>
|
||||
|
||||
* src/base/ftobjs.c (FT_Load_Glyph): Fix boundary check for
|
||||
`glyph_index'.
|
||||
|
||||
2003-04-25: Graham Asher <graham.asher@btinternet.com>
|
||||
|
||||
Added the optional unpatented hinting system for TrueType. It
|
||||
|
@ -50,9 +55,9 @@
|
|||
|
||||
2003-04-24 David Turner <david@freetype.org>
|
||||
|
||||
* src/pcf/pcfread.c (pcf_load_font): fixed the computation of
|
||||
face->num_glyphs, this required increase the value by 1 to respect
|
||||
the convention that gindex 0 always corresponds to the "missing
|
||||
* src/pcf/pcfread.c (pcf_load_font): Fixed the computation of
|
||||
face->num_glyphs. We must increase the value by 1 to respect the
|
||||
convention that glyph index 0 always corresponds to the "missing
|
||||
glyph".
|
||||
|
||||
2003-04-24 Werner Lemberg <wl@gnu.org>
|
||||
|
|
|
@ -466,7 +466,7 @@
|
|||
if ( !face || !face->size || !face->glyph )
|
||||
return FT_Err_Invalid_Face_Handle;
|
||||
|
||||
if ( glyph_index > (FT_UInt)face->num_glyphs )
|
||||
if ( glyph_index >= (FT_UInt)face->num_glyphs )
|
||||
return FT_Err_Invalid_Argument;
|
||||
|
||||
slot = face->glyph;
|
||||
|
|
Loading…
Reference in New Issue