[gvar] Remove sanitize check for data array

We are not checking in sanitize that offset array is ascending,
so this check was bogus.
This commit is contained in:
Behdad Esfahbod 2022-05-06 12:01:37 -06:00
parent 38478d1061
commit 9a6dabd61a
1 changed files with 1 additions and 3 deletions

View File

@ -393,9 +393,7 @@ struct gvar
sharedTuples.sanitize (c, this, axisCount * sharedTupleCount) &&
(is_long_offset () ?
c->check_array (get_long_offset_array (), glyphCount+1) :
c->check_array (get_short_offset_array (), glyphCount+1)) &&
c->check_array (((const HBUINT8*)&(this+dataZ)) + get_offset (0),
get_offset (glyphCount) - get_offset (0)));
c->check_array (get_short_offset_array (), glyphCount+1)));
}
/* GlyphVariationData not sanitized here; must be checked while accessing each glyph variation data */