mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[ft] Disallow getting the entire font data with tag=0
This commit is contained in:
1 parent
33d13fdda9
commit
2cd1ea4411
1 file changed
+3
@@ -152,6 +152,9 @@ _get_table (hb_tag_t tag, void *user_data)
|
||||
FT_ULong length = 0;
|
||||
FT_Error error;
|
||||
|
||||
if (HB_UNLIKELY (tag == HB_TAG_NONE))
|
||||
return hb_blob_create_empty ();
|
||||
|
||||
error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length);
|
||||
if (error)
|
||||
return hb_blob_create_empty ();
|
||||
|
||||
Reference in new issue
Block a user