Index: third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc |
index 1fa79ce6d42ef1a80e680eb32cf3e34fd3818183..5f4d98b70c8136b21b8de730b6d2df10e520d797 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc |
+++ b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc |
@@ -188,7 +188,7 @@ preprocess_text_hangul (const hb_ot_shape_plan_t *plan, |
*/ |
unsigned int count = buffer->len; |
- for (buffer->idx = 0; buffer->idx < count;) |
+ for (buffer->idx = 0; buffer->idx < count && !buffer->in_error;) |
{ |
hb_codepoint_t u = buffer->cur().codepoint; |
@@ -411,13 +411,14 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_hangul = |
"hangul", |
collect_features_hangul, |
override_features_hangul, |
- data_create_hangul, /* data_create */ |
- data_destroy_hangul, /* data_destroy */ |
+ data_create_hangul, |
+ data_destroy_hangul, |
preprocess_text_hangul, |
+ NULL, /* postprocess_glyphs */ |
HB_OT_SHAPE_NORMALIZATION_MODE_NONE, |
NULL, /* decompose */ |
NULL, /* compose */ |
- setup_masks_hangul, /* setup_masks */ |
+ setup_masks_hangul, |
HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE, |
false, /* fallback_position */ |
}; |