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

Fixes #1254.
smooth_malloc
Alexei Podtelezhnikov 1 year ago
parent 2d9fce53d4
commit c46c4b8e79
  1. 8
      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;

Loading…
Cancel
Save