diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index d37c47841..4dbae180c 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -3087,11 +3087,11 @@ struct ChainRule { TRACE_SANITIZE (this); /* Hyper-optimized sanitized because this is really hot. */ - if (!c->check_point (&StructAfter (backtrack.len))) return_trace (false); + if (!backtrack.len.sanitize (c)) return_trace (false); const auto &input = StructAfter (backtrack); - if (!c->check_point (&StructAfter (input.lenP1))) return_trace (false); + if (!input.lenP1.sanitize (c)) return_trace (false); const auto &lookahead = StructAfter (input); - if (!c->check_point (&StructAfter (lookahead.len))) return_trace (false); + if (!lookahead.len.sanitize (c)) return_trace (false); const auto &lookup = StructAfter (lookahead); return_trace (lookup.sanitize (c)); }