提交 67449c39 编写于 作者: B Behdad Esfahbod

Don't dereference offset before check_struct()

上级 ca746f26
......@@ -387,10 +387,9 @@ struct ResourceMap
inline bool sanitize (hb_sanitize_context_t *c, const void *data_base) const
{
TRACE_SANITIZE (this);
const void *type_base = &(this+typeList);
return_trace (c->check_struct (this) &&
typeList.sanitize (c, this,
type_base,
&(this+typeList),
data_base));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册