freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] otvalid modules


From: George Williams
Subject: Re: [ft-devel] otvalid modules
Date: 12 Aug 2007 12:54:21 -0700

On Sat, 2007-08-11 at 01:22, Werner LEMBERG wrote:
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]