Fix integer comparison bug in GPOS validation

* src/sfnt/ttgpos.c
This commit is contained in:
Austin Quick 2025-10-31 23:55:23 +00:00
parent 30e45abe93
commit a3238e92e0

View file

@ -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;