[test/buffer] Add test pre_alloc(); hangs in the buffer code right now
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 28 Apr 2011 16:28:54 +0000 (12:28 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 28 Apr 2011 16:28:54 +0000 (12:28 -0400)
commit15c57e04bf05026ef424f8ae912d2f379301bf93
treec0172604a6cde4130d26487d0ce57c824d4bad87
parent1e5527e2d60ed3b4a5adf62b258415ec3aef41fb
[test/buffer] Add test pre_alloc(); hangs in the buffer code right now

Because the following loop overflows:

  while (size > new_allocated)
      new_allocated += (new_allocated >> 1) + 32;
test/test-buffer.c