From 14a639ea592cba971e5548f0942dd395c602c7a8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 Aug 2017 11:30:39 -0700 Subject: [PATCH] [unsafe-to-break] Fix Use-of-uninitialized-value in unsafe_to_break_set_mask Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3011 --- src/hb-ot-shape-complex-hangul.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-hangul.cc b/src/hb-ot-shape-complex-hangul.cc index a90af3fd5..0e74802ee 100644 --- a/src/hb-ot-shape-complex-hangul.cc +++ b/src/hb-ot-shape-complex-hangul.cc @@ -372,7 +372,7 @@ preprocess_text_hangul (const hb_ot_shape_plan_t *plan, buffer->merge_out_clusters (start, end); continue; } - else if (!tindex) + else if ((!tindex && buffer->idx + 1 < count && isT (buffer->cur(+1).codepoint))) buffer->unsafe_to_break (buffer->idx, buffer->idx + 2); /* Mark unsafe between LV and T. */ }