[buffer] Add an assert

See if it helps debugging https://bugs.chromium.org/p/chromium/issues/detail?id=895117
This commit is contained in:
Behdad Esfahbod 2018-10-16 18:35:03 -07:00
parent 5842756b13
commit 2e7c716511
1 changed files with 2 additions and 0 deletions

View File

@ -359,6 +359,8 @@ hb_buffer_t::replace_glyphs (unsigned int num_in,
{
if (unlikely (!make_room_for (num_in, num_out))) return;
assert (idx + num_in <= len);
merge_clusters (idx, idx + num_in);
hb_glyph_info_t orig_info = info[idx];