Fix HeadlessArrayOf::sanitize_shallow()
This commit is contained in:
parent
7ce9f397d1
commit
5f04711314
|
@ -1012,12 +1012,6 @@ struct HeadlessArrayOf
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool sanitize_shallow (hb_sanitize_context_t *c) const
|
|
||||||
{
|
|
||||||
return c->check_struct (this)
|
|
||||||
&& c->check_array (this, Type::static_size, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
|
@ -1035,6 +1029,15 @@ struct HeadlessArrayOf
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
inline bool sanitize_shallow (hb_sanitize_context_t *c) const
|
||||||
|
{
|
||||||
|
TRACE_SANITIZE (this);
|
||||||
|
return_trace (c->check_struct (this) &&
|
||||||
|
(!len || c->check_array (array, Type::static_size, len - 1)));
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
LenType len;
|
LenType len;
|
||||||
Type array[VAR];
|
Type array[VAR];
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue