From 0b6ca424fc21f409496eb05d287f185566388282 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 21 Jul 2022 21:57:17 +0000 Subject: [PATCH] [repacker] fix GSTAR sanitize. --- src/graph/gsubgpos-graph.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/gsubgpos-graph.hh b/src/graph/gsubgpos-graph.hh index d62a8496e..86844c07b 100644 --- a/src/graph/gsubgpos-graph.hh +++ b/src/graph/gsubgpos-graph.hh @@ -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,