* src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Remove check.

The highest (sign) attribute bit is reserved and should be zero.
It is harmless to omit this check however. Fixes #1342.
This commit is contained in:
Alexei Podtelezhnikov 2025-06-12 21:02:57 -04:00
parent fc051dc0be
commit 04f68052f0

View file

@ -269,14 +269,8 @@
* According to Inside Macintosh: More Macintosh Toolbox,
* "Resource IDs" (1-46), there are some reserved IDs.
* However, FreeType2 is not a font synthesizer, no need
* to check the acceptable resource ID.
* to check the acceptable resource ID or its attributes.
*/
if ( temp < 0 )
{
error = FT_THROW( Invalid_Table );
goto Exit;
}
ref[j].offset = temp & 0xFFFFFFL;
FT_TRACE3(( " [%d]:"