Index: third_party/harfbuzz-ng/src/hb-ot-layout.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-layout.cc b/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
index 275a960d586a255ee81211f6f7ef2ea7863a2134..66aa35ad73675150b53949926b7dedee286cd600 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
+++ b/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
@@ -890,7 +890,7 @@ apply_forward (OT::hb_apply_context_t *c, |
{ |
bool ret = false; |
hb_buffer_t *buffer = c->buffer; |
- while (buffer->idx < buffer->len) |
+ while (buffer->idx < buffer->len && !buffer->in_error) |
{ |
if (accel.may_have (buffer->cur().codepoint) && |
(buffer->cur().mask & c->lookup_mask) && |