Revert "Fix hang in OOM situations"

This reverts commit f0599db761.

Commit abadc1717d provides a better
fix for this.
pull/176/head
Behdad Esfahbod 9 years ago
parent 18e1c6b6ef
commit 13188cba7f
  1. 6
      src/hb-buffer-private.hh

@ -174,11 +174,7 @@ struct hb_buffer_t {
if (have_output) if (have_output)
{ {
if (unlikely (out_info != info || out_len != idx)) { if (unlikely (out_info != info || out_len != idx)) {
if (unlikely (!make_room_for (1, 1))) if (unlikely (!make_room_for (1, 1))) return;
{
idx++; // So we don't hang indefinitely...
return;
}
out_info[out_len] = info[idx]; out_info[out_len] = info[idx];
} }
out_len++; out_len++;

Loading…
Cancel
Save