提交 2cd1ea44 编写于 作者: B Behdad Esfahbod

[ft] Disallow getting the entire font data with tag=0

上级 33d13fdd
......@@ -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 ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册