提交 c521e793 编写于 作者: B Behdad Esfahbod

Fix OOB in replace_glyph()

Patch from Kenichi Ishibashi.
上级 03408ce7
......@@ -317,6 +317,8 @@ hb_buffer_t::copy_glyph (void)
void
hb_buffer_t::replace_glyph (hb_codepoint_t glyph_index)
{
if (!make_room_for (1, 1)) return;
out_info[out_len] = info[idx];
out_info[out_len].codepoint = glyph_index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册