From c46c4b8e79170e8a68267164845c04ce52191126 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Tue, 29 Aug 2023 17:52:06 +0000 Subject: [PATCH] * src/sfnt/ttpost.c (load_format_20): Permit long names. Fixes #1254. --- src/sfnt/ttpost.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c index 1dfad4298..cc02c6d55 100644 --- a/src/sfnt/ttpost.c +++ b/src/sfnt/ttpost.c @@ -224,11 +224,9 @@ FT_UInt len = strings[p]; - if ( len > 63U ) - { - error = FT_THROW( Invalid_File_Format ); - goto Fail; - } + FT_TRACE4(( len < 40U ? "" + : "load_format_20: %u-byte name found\n", + len )); strings[p] = 0; name_strings[n] = strings + p + 1;