gdbus: Fix crash in g_dbus_create_error_valist
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Apr 2015 20:07:41 +0000 (22:07 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 9 Apr 2015 14:59:08 +0000 (16:59 +0200)
commit97abe1751d5351b09bf181f59e3207ea37dcdafe
treea846f2a49f24e012ae858288f36d8118a4d2877d
parent2f75b13ecd9e5711c9c26776e394d655e8ba72fe
gdbus: Fix crash in g_dbus_create_error_valist

Passing NULL format parameter to vsnprintf results in invalid argument
error on glibc. But with some other libc libraries (musl and uClibc)
this results in dereferencing NULL pointer and crash due to
segmentation fault.
gdbus/object.c