提交 6879efc2 编写于 作者: B Behdad Esfahbod
上级 a262eb3d
......@@ -69,7 +69,8 @@ struct ankr
if (!offset)
return Null(Anchor);
const GlyphAnchors &anchors = StructAtOffset<GlyphAnchors> (&(this+anchorData), *offset);
if (unlikely (end - (const char *) &anchors < anchors.len.static_size ||
if (unlikely (end < (const char *) &anchors ||
end - (const char *) &anchors < anchors.len.static_size ||
end - (const char *) &anchors < anchors.get_size ()))
return Null(Anchor);
return anchors[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册