forked from minhngoc25a/freetype2
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
SingleSubstFormat1.
This commit is contained in:
parent
4fc0ccea68
commit
23a424f521
|
@ -1,3 +1,8 @@
|
|||
2007-08-17 George Williams <gww@silcom.com>
|
||||
|
||||
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
|
||||
SingleSubstFormat1.
|
||||
|
||||
2007-08-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
* builds/unix/configure.raw: Fix a bug which sets CC_BUILD by
|
||||
|
|
|
@ -71,16 +71,12 @@
|
|||
otv_Coverage_validate( Coverage, valid, -1 );
|
||||
|
||||
idx = otv_Coverage_get_first( Coverage ) + DeltaGlyphID;
|
||||
if ( idx < 0 ||
|
||||
idx + DeltaGlyphID < 0 ||
|
||||
(FT_UInt)idx + DeltaGlyphID >= valid->glyph_count )
|
||||
FT_INVALID_GLYPH_ID;
|
||||
if ( idx < 0 )
|
||||
FT_INVALID_DATA;
|
||||
|
||||
idx = otv_Coverage_get_last( Coverage ) + DeltaGlyphID;
|
||||
if ( (FT_UInt)idx >= valid->glyph_count ||
|
||||
idx + DeltaGlyphID < 0 ||
|
||||
(FT_UInt)idx + DeltaGlyphID >= valid->glyph_count )
|
||||
FT_INVALID_GLYPH_ID;
|
||||
if ( (FT_UInt)idx >= valid->glyph_count )
|
||||
FT_INVALID_DATA;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue