提交 13188cba 编写于 作者: B Behdad Esfahbod

Revert "Fix hang in OOM situations"

This reverts commit f0599db7.

Commit abadc171 provides a better
fix for this.
上级 18e1c6b6
......@@ -174,11 +174,7 @@ struct hb_buffer_t {
if (have_output)
{
if (unlikely (out_info != info || out_len != idx)) {
if (unlikely (!make_room_for (1, 1)))
{
idx++; // So we don't hang indefinitely...
return;
}
if (unlikely (!make_room_for (1, 1))) return;
out_info[out_len] = info[idx];
}
out_len++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册