From 1e4fe10b98a291787ae561beca80cb70b481b108 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 12 Aug 2020 13:06:37 -0700 Subject: [PATCH] [ENOMEM] check for error in visited map during closure features. --- src/hb-ot-layout-gsubgpos.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 822303868..03a578cec 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -89,6 +89,9 @@ struct hb_closure_context_t : bool is_lookup_done (unsigned int lookup_index) { + if (done_lookups->in_error ()) + return true; + /* Have we visited this lookup with the current set of glyphs? */ return done_lookups->get (lookup_index) == glyphs->get_population (); }