[cff] Speed up FDSelect0 sanitize

This commit is contained in:
Behdad Esfahbod 2022-11-30 11:20:19 -07:00
parent 2658370f00
commit 582a87ef0a
1 changed files with 2 additions and 3 deletions

View File

@ -420,9 +420,8 @@ struct FDSelect0 {
TRACE_SANITIZE (this);
if (unlikely (!(c->check_struct (this))))
return_trace (false);
for (unsigned int i = 0; i < c->get_num_glyphs (); i++)
if (unlikely (!fds[i].sanitize (c)))
return_trace (false);
if (unlikely (!c->check_array (fds, c->get_num_glyphs ())))
return_trace (false);
return_trace (true);
}