* src/sfnt/ttload.c (tt_face_load_font_dir): Add another guard.

Reject 'OTTO' fonts with no valid tables.
gsoc-anurag-2023-docs-final
Werner Lemberg 2 years ago
parent 966ff5a55c
commit 08268691aa
  1. 7
      src/sfnt/ttload.c

@ -504,6 +504,13 @@
FT_FRAME_EXIT();
if ( !valid_entries )
{
FT_TRACE2(( "tt_face_load_font_dir: no valid tables found\n" ));
error = FT_THROW( Unknown_File_Format );
goto Exit;
}
FT_TRACE2(( "table directory loaded\n" ));
FT_TRACE2(( "\n" ));

Loading…
Cancel
Save