diff options
author | Werner Lemberg <wl@gnu.org> | 2023-04-28 15:32:16 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2023-04-28 15:33:58 +0200 |
commit | 08268691aaf22444179e1360ad95403988755126 (patch) | |
tree | c9aa52f0e7a77a9e40531ae726da7ac0fdda1524 /src | |
parent | 966ff5a55cbe46e9ae4658e6e0e7ecb1e6e82b07 (diff) | |
download | freetype2-08268691aaf22444179e1360ad95403988755126.tar.gz |
* src/sfnt/ttload.c (tt_face_load_font_dir): Add another guard.
Reject 'OTTO' fonts with no valid tables.
Diffstat (limited to 'src')
-rw-r--r-- | src/sfnt/ttload.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c index 14f625c82..7b44e9cd2 100644 --- a/src/sfnt/ttload.c +++ b/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" )); |