Fix dbus-daemon crash due to invalid service file
authorChengwei Yang <chengwei.yang@intel.com>
Thu, 6 Jun 2013 05:25:10 +0000 (13:25 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 6 Jun 2013 11:58:56 +0000 (12:58 +0100)
commit0a76508672de5c879c14c343f8e6cc041c1843d9
tree65c125e4d75e396fe1529a37f6da0ebbf0052116
parentff641bdb2f87188c16c24cee729b210cc827c4c7
Fix dbus-daemon crash due to invalid service file

dbus-daemon will crash due to invalid service file which key/value
starts before section. In that situation, new_line() will try to access
invalid address.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60853
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/desktop-file.c