gvaluetransform: Fix an infinite loop with GFlagsValue sets with the 0 value
authorRui Matos <tiagomatos@gmail.com>
Tue, 21 Feb 2012 15:42:43 +0000 (16:42 +0100)
committerRui Matos <tiagomatos@gmail.com>
Wed, 22 Feb 2012 11:17:38 +0000 (12:17 +0100)
commit9ff09f34cf0bc5fbc951490923880d82d94862d1
tree657a3da062761d834e7870e2ba3a0abd5885dfca
parent9e5ff3d3ebba8bd7f3a871735ed35fe7b4e98d77
gvaluetransform: Fix an infinite loop with GFlagsValue sets with the 0 value

Transforming a GValue holding flags from a GFlagsValue set that includes the 0
value (no flag bits set) into a string would loop until exhausting all the
available memory.

https://bugzilla.gnome.org/show_bug.cgi?id=670557
gobject/gvaluetransform.c
gobject/tests/enums.c