aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarret Rieger <grieger@google.com>2020-08-12 13:06:37 -0700
committerebraminio <ebraminio@gmail.com>2020-08-13 01:43:11 +0430
commit1e4fe10b98a291787ae561beca80cb70b481b108 (patch)
tree885155716da1eef33e1c26649f1fc2557f7c83cf /src
parent9562239f0531c0e49e6ab7e157da578d454432c8 (diff)
downloadharfbuzz_ng-1e4fe10b98a291787ae561beca80cb70b481b108.tar.gz
[ENOMEM] check for error in visited map during closure features.
Diffstat (limited to 'src')
-rw-r--r--src/hb-ot-layout-gsubgpos.hh3
1 files changed, 3 insertions, 0 deletions
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 ();
}