properly abort instead of looping infinitely
authorSven Herzberg <herzi@gnome-de.org>
Wed, 13 Jan 2010 13:47:58 +0000 (14:47 +0100)
committerSven Herzberg <herzi@gnome-de.org>
Wed, 13 Jan 2010 14:01:00 +0000 (15:01 +0100)
commit7448eb71c3ac85a08c8f0fceaf9747e6298ae5c9
treea6c2b81912d2a5d104937d8c01add4498bb09899
parent820181a5de46da070d7792128fe148b51fc79a20
properly abort instead of looping infinitely

Fixes: Bug 568760 - nautilus freezes due to a bug in garray.c:322

* glib/garray.c: increase the size of potential return values by
  using an unsigned result; properly check if we still handle valid size
  proposals, return the original request if there's no usable size left
* tests/array-test.c: reproduce the error condition of the bug report
glib/garray.c
glib/tests/array-test.c