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

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

上级 91e721ea
......@@ -329,14 +329,15 @@ retry:
#undef ALLOCATE_ARRAY
if (!HB_ShapeItem (&item))
return false;
if (unlikely (item.num_glyphs > num_glyphs))
{
buffer->ensure (buffer->allocated * 2);
if (buffer->in_error)
FAIL ("Buffer resize failed");
goto retry;
if (unlikely (item.num_glyphs > num_glyphs))
{
buffer->ensure (buffer->allocated * 2);
if (buffer->in_error)
FAIL ("Buffer resize failed");
goto retry;
}
return false;
}
num_glyphs = item.num_glyphs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册