Don't dereference offset before check_struct()
This commit is contained in:
parent
ca746f261e
commit
67449c3933
|
@ -387,10 +387,9 @@ struct ResourceMap
|
||||||
inline bool sanitize (hb_sanitize_context_t *c, const void *data_base) const
|
inline bool sanitize (hb_sanitize_context_t *c, const void *data_base) const
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
const void *type_base = &(this+typeList);
|
|
||||||
return_trace (c->check_struct (this) &&
|
return_trace (c->check_struct (this) &&
|
||||||
typeList.sanitize (c, this,
|
typeList.sanitize (c, this,
|
||||||
type_base,
|
&(this+typeList),
|
||||||
data_base));
|
data_base));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue