mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 05:28:00 +02:00
Merge branch 'patch-1' into 'master'
Fix integer comparison bug in GPOS validation See merge request freetype/freetype!398
This commit is contained in:
commit
84e2383684
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