提交 bf276ba4 编写于 作者: W wanghao-free

fix CVE-2022-33068

Description: Limit glyph extents
IssueNo: https://gitee.com/openharmony/third_party_harfbuzz/issues/I63NCG
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: Nwanghao-free <wanghao453@h-partners.com>
上级 37d385f7
......@@ -298,6 +298,12 @@ struct sbix
const PNGHeader &png = *blob->as<PNGHeader>();
if ((png.IHDR.height >= 65536) | (png.IHDR.width >= 65536))
{
hb_blob_destroy (blob);
return false;
}
extents->x_bearing = x_offset;
extents->y_bearing = png.IHDR.height + y_offset;
extents->width = png.IHDR.width;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册