* src/sfnt/ttgpos.c (tt_face_get_class): Fix range check.

Fixes issue #1392.
This commit is contained in:
Werner Lemberg 2026-03-06 06:29:38 +01:00
parent 6995a34628
commit b2c8a031a2

View file

@ -817,7 +817,7 @@
/* XXX: Is this modulo 65536 arithmetic? */
if ( startGlyphID <= glyph_index &&
startGlyphID + glyphCount >= glyph_index )
startGlyphID + glyphCount > glyph_index )
return FT_PEEK_USHORT( p + ( glyph_index - startGlyphID ) * 2 );
}
else