g_settings_get: check validity of format string
authorLars Uebernickel <lars@uebernic.de>
Fri, 6 Dec 2013 15:01:48 +0000 (16:01 +0100)
committerLars Uebernickel <lars@uebernic.de>
Fri, 6 Dec 2013 15:48:00 +0000 (16:48 +0100)
commit396d40af237db00e1014520cf6858cfed30bbc51
treebfa4c5e3938807fab91e98eb7c19c0e894423e85
parentc07eccd9c212e1e1642ee8cd359f5066ee8e5295
g_settings_get: check validity of format string

Allow only format strings that copy all values (i.e, don't contain '&'),
as the returned pointers might become invalid in some rare cases.

Since this is technically an API break, this patch only prints a
critical when a faulty format string is detected, but still fetches the
values.

https://bugzilla.gnome.org/show_bug.cgi?id=719979
gio/gsettings.c