From f92bd86cc8c11d262d1830c631cb7c63fc9d4bc8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 Nov 2015 23:52:29 -0800 Subject: [PATCH] Don't process lookups if buffer is in error --- src/hb-ot-layout.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 275a960..4111004 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -954,7 +954,7 @@ apply_string (OT::hb_apply_context_t *c, { hb_buffer_t *buffer = c->buffer; - if (unlikely (!buffer->len || !c->lookup_mask)) + if (unlikely (buffer->in_error || !buffer->len || !c->lookup_mask)) return; c->set_lookup_props (lookup.get_props ()); -- 2.7.4