* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of


			
			
				david-pic-changes
			
			
		
Werner Lemberg 18 years ago
parent 4fc0ccea68
commit 23a424f521
  1. 5
      ChangeLog
  2. 12
      src/otvalid/otvgsub.c

@ -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…
Cancel
Save