[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
This commit is contained in:
Behdad Esfahbod 2017-08-11 11:30:39 -07:00
parent e43aad5552
commit 14a639ea59
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ preprocess_text_hangul (const hb_ot_shape_plan_t *plan,
buffer->merge_out_clusters (start, end); buffer->merge_out_clusters (start, end);
continue; 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. */ buffer->unsafe_to_break (buffer->idx, buffer->idx + 2); /* Mark unsafe between LV and T. */
} }