forked from minhngoc25a/freetype2
[sfnt] Ensure OTTO fonts have tables (#57285).
* src/sfnt/ttload.c (tt_face_load_font_dir): Add test.
This commit is contained in:
parent
07c8d8bbdb
commit
9b0179597e
|
@ -1,3 +1,9 @@
|
|||
2019-11-23 Ben Wagner <bungeman@google.com>
|
||||
|
||||
[sfnt] Ensure OTTO fonts have tables (#57285).
|
||||
|
||||
* src/sfnt/ttload.c (tt_face_load_font_dir): Add test.
|
||||
|
||||
2019-11-23 Behdad Esfahbod <behdad@behdad.org>
|
||||
|
||||
Minor fixes for recent compilers.
|
||||
|
|
|
@ -397,7 +397,15 @@
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
valid_entries = sfnt.num_tables;
|
||||
if ( !valid_entries )
|
||||
{
|
||||
FT_TRACE2(( "tt_face_load_font_dir: no valid tables found\n" ));
|
||||
error = FT_THROW( Unknown_File_Format );
|
||||
goto Exit;
|
||||
}
|
||||
}
|
||||
|
||||
face->num_tables = valid_entries;
|
||||
face->format_tag = sfnt.format_tag;
|
||||
|
|
Loading…
Reference in New Issue