[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Fri Aug 11 18:31:12 UTC 2017
src/hb-ot-shape-complex-hangul.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 14a639ea592cba971e5548f0942dd395c602c7a8
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Fri Aug 11 11:30:39 2017 -0700
[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
diff --git a/src/hb-ot-shape-complex-hangul.cc b/src/hb-ot-shape-complex-hangul.cc
index a90af3fd..0e74802e 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. */
}
More information about the HarfBuzz
mailing list