[buffer] Add an assert
See if it helps debugging https://bugs.chromium.org/p/chromium/issues/detail?id=895117
This commit is contained in:
parent
5842756b13
commit
2e7c716511
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue