提交 9550a8c4 编写于 作者: B Behdad Esfahbod

[hb-old] Fixup not-enough-space handling

上级 91e721ea
......@@ -329,8 +329,7 @@ retry:
#undef ALLOCATE_ARRAY
if (!HB_ShapeItem (&item))
return false;
{
if (unlikely (item.num_glyphs > num_glyphs))
{
buffer->ensure (buffer->allocated * 2);
......@@ -338,6 +337,8 @@ retry:
FAIL ("Buffer resize failed");
goto retry;
}
return false;
}
num_glyphs = item.num_glyphs;
/* Ok, we've got everything we need, now compose output buffer,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册