提交 91176d5b 编写于 作者: B Behdad Esfahbod

[serialize] Check offset base is within (possibly end of) object

上级 0f1a6ce8
......@@ -295,6 +295,7 @@ struct hb_serialize_context_t
{
const object_t::link_t &link = *link_it;
const object_t &child = *packed[link.objidx];
assert (link.bias <= parent.tail - parent.head);
unsigned offset = (child.head - parent.head) - link.bias;
if (link.is_wide)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册