mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[buffer] Add an assert
See if it helps debugging https://bugs.chromium.org/p/chromium/issues/detail?id=895117
This commit is contained in:
1 parent
5842756b13
commit
2e7c716511
1 file changed
+2
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user