* src/sfnt/ttpost.c (load_format_20): Permit long names.

Fixes #1254.
This commit is contained in:
Alexei Podtelezhnikov 2023-08-29 17:52:06 +00:00
parent 2d9fce53d4
commit c46c4b8e79
1 changed files with 3 additions and 5 deletions

View File

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