[CBDT] Fix thinko!

This commit is contained in:
Behdad Esfahbod 2016-12-04 19:36:30 -08:00
parent a141d1da9b
commit b7068af423
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ struct IndexSubtableArray
inline bool sanitize (hb_sanitize_context_t *c, unsigned int count) const
{
TRACE_SANITIZE (this);
if (unlikely (!c->check_array (&indexSubtablesZ, indexSubtablesZ[0].static_size, sizeof (count))))
if (unlikely (!c->check_array (&indexSubtablesZ, indexSubtablesZ[0].static_size, count)))
return_trace (false);
for (unsigned int i = 0; i < count; i++)
if (unlikely (!indexSubtablesZ[i].sanitize (c, this)))