ftobjs.c: Prevent an overflow in glyph index handling.
This commit is contained in:
parent
2ed9d7fc75
commit
95aeebf438
|
@ -1,3 +1,10 @@
|
|||
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
ftobjs.c: Prevent an overflow in glyph index handling.
|
||||
|
||||
* src/base/ftobjs.c (FT_Face_GetCharsOfVariant):
|
||||
Improve the cast in comparison to avoid the truncation.
|
||||
|
||||
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
Improve the variable types in raccess_make_file_name().
|
||||
|
|
|
@ -3297,7 +3297,7 @@
|
|||
((FT_Byte*)buffer)[0] = 0;
|
||||
|
||||
if ( face &&
|
||||
glyph_index <= (FT_UInt)face->num_glyphs &&
|
||||
(FT_Long)glyph_index <= face->num_glyphs &&
|
||||
FT_HAS_GLYPH_NAMES( face ) )
|
||||
{
|
||||
FT_Service_GlyphDict service;
|
||||
|
|
Loading…
Reference in New Issue