[aat] Sanitize classTable in StateTable

pull/705/head
Behdad Esfahbod 7 years ago
parent e6263c7142
commit 12fffce10e
  1. 3
      src/hb-aat-layout-common-private.hh

@ -550,7 +550,8 @@ struct StateTable
unsigned int *num_entries_out = nullptr) const unsigned int *num_entries_out = nullptr) const
{ {
TRACE_SANITIZE (this); TRACE_SANITIZE (this);
if (unlikely (!c->check_struct (this))) return_trace (false); if (unlikely (!(c->check_struct (this) &&
classTable.sanitize (c, this)))) return_trace (false);
const HBUINT16 *states = (this+stateArrayTable).arrayZ; const HBUINT16 *states = (this+stateArrayTable).arrayZ;
const Entry<Extra> *entries = (this+entryTable).arrayZ; const Entry<Extra> *entries = (this+entryTable).arrayZ;

Loading…
Cancel
Save