[repacker] fix GSTAR sanitize.

This commit is contained in:
Garret Rieger 2022-07-21 21:57:17 +00:00
parent 2f63f0c861
commit 514fcea0aa
1 changed files with 2 additions and 2 deletions

View File

@ -200,8 +200,8 @@ struct GSTAR : public OT::GSUBGPOS
bool sanitize (const graph_t::vertex_t& vertex)
{
int64_t len = vertex.obj.tail - vertex.obj.head;
// Only need access to fields in min_size
return len >= OT::GSUBGPOS::min_size;
if (len < OT::GSUBGPOS::min_size) return false;
return len >= get_size ();
}
void find_lookups (graph_t& graph,