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

Reject 'OTTO' fonts with no valid tables.
This commit is contained in:
Werner Lemberg 2023-04-28 15:32:16 +02:00
parent 966ff5a55c
commit 08268691aa
1 changed files with 7 additions and 0 deletions

View File

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