[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] otvalid modules
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] otvalid modules |
Date: |
Fri, 17 Aug 2007 17:56:24 +0200 (CEST) |
> > Applied. However, I think there is a mistake for the
> > SingleSubstFormat1 case:
> >
> > idx = otv_Coverage_get_first( Coverage ) + DeltaGlyphID;
> > if ( idx < 0 ||
> > idx + DeltaGlyphID < 0 ||
> > (FT_UInt)idx + DeltaGlyphID >= valid->glyph_count )
> > FT_INVALID_GLYPH_ID;
> >
> > The code adds DeltaGlyphID to idx, and then you are checking
> > whether `idx + DeltaGlyphID < 0'... This looks wrong to me. I
> > don't have time currently to verify this. Please post a patch if
> > necessary.
>
> DeltaGlyphID can be a negative value, so I think it's a reasonable
> check.
Well, yes, but I would expect this code:
idx = otv_Coverage_get_first( Coverage );
if ( idx < 0 ||
idx + DeltaGlyphID < 0 ||
(FT_UInt)idx + DeltaGlyphID >= valid->glyph_count )
FT_INVALID_GLYPH_ID;
idx += DeltaGlyphID;
Werner
- [ft-devel] otvalid modules, George Williams, 2007/08/07
- Re: [ft-devel] otvalid modules, Behdad Esfahbod, 2007/08/08
- Re: [ft-devel] otvalid modules, Werner LEMBERG, 2007/08/08
- Re: [ft-devel] otvalid modules, George Williams, 2007/08/08
- Re: [ft-devel] otvalid modules, Werner LEMBERG, 2007/08/08
- Re: [ft-devel] otvalid modules, George Williams, 2007/08/10
- Re: [ft-devel] otvalid modules, Werner LEMBERG, 2007/08/11
- Re: [ft-devel] otvalid modules, George Williams, 2007/08/12
- Re: [ft-devel] otvalid modules,
Werner LEMBERG <=
- Re: [ft-devel] otvalid modules, George Williams, 2007/08/17
- Re: [ft-devel] otvalid modules, Werner LEMBERG, 2007/08/17