[kerx] Fix Format1 sanitize
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10948
This commit is contained in:
parent
44af1f93ee
commit
40f2b9355c
|
@ -212,7 +212,9 @@ struct KerxSubTableFormat1
|
||||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
return_trace (likely (machine.sanitize (c)));
|
/* The rest of array sanitizations are done at run-time. */
|
||||||
|
return_trace (likely (c->check_struct (this) &&
|
||||||
|
machine.sanitize (c)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -444,11 +446,9 @@ struct KerxSubTableFormat4
|
||||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
|
|
||||||
/* The rest of array sanitizations are done at run-time. */
|
/* The rest of array sanitizations are done at run-time. */
|
||||||
return_trace (c->check_struct (this) &&
|
return_trace (likely (c->check_struct (this) &&
|
||||||
machine.sanitize (c) &&
|
machine.sanitize (c)));
|
||||||
flags.sanitize (c));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in New Issue