From 04f68052f0d20e6f269cdc7d79a4fa5bb755d574 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 12 Jun 2025 21:02:57 -0400 Subject: [PATCH] * 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. --- src/base/ftrfork.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/base/ftrfork.c b/src/base/ftrfork.c index dc9b043d8..25c6f98d8 100644 --- a/src/base/ftrfork.c +++ b/src/base/ftrfork.c @@ -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]:"