mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-01-04 18:30:13 +01:00
Fix integer comparison bug in GPOS validation
* src/sfnt/ttgpos.c
This commit is contained in:
parent
30e45abe93
commit
a3238e92e0
1 changed files with 4 additions and 4 deletions
|
|
@ -79,7 +79,7 @@
|
|||
FT_UInt id = FT_NEXT_USHORT( p );
|
||||
|
||||
|
||||
if ( last_id >= id )
|
||||
if ( last_id >= (FT_Long)id )
|
||||
return FALSE;
|
||||
last_id = id;
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
if ( startGlyphID > endGlyphID )
|
||||
return FALSE;
|
||||
|
||||
if ( last_id >= startGlyphID )
|
||||
if ( last_id >= (FT_Long)startGlyphID )
|
||||
return FALSE;
|
||||
last_id = endGlyphID;
|
||||
|
||||
|
|
@ -185,7 +185,7 @@
|
|||
if ( startGlyphID > endGlyphID )
|
||||
return FALSE;
|
||||
|
||||
if ( last_id >= startGlyphID )
|
||||
if ( last_id >= (FT_Long)startGlyphID )
|
||||
return FALSE;
|
||||
last_id = endGlyphID;
|
||||
|
||||
|
|
@ -311,7 +311,7 @@
|
|||
FT_UInt id = FT_NEXT_USHORT( p );
|
||||
|
||||
|
||||
if ( last_id >= id )
|
||||
if ( last_id >= (FT_Long)id )
|
||||
return FALSE;
|
||||
|
||||
last_id = id;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue