提交 54842374 编写于 作者: B Behdad Esfahbod

Fix check_struct to check min_size instead of sizeof

上级 ed07422c
......@@ -243,7 +243,7 @@ struct hb_sanitize_context_t
template <typename Type>
inline bool check_struct (const Type *obj) const
{
return likely (this->check_range (obj, sizeof (*obj)));
return likely (this->check_range (obj, obj->min_size));
}
inline bool can_edit (const void *base HB_UNUSED, unsigned int len HB_UNUSED)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册