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>
Wed, 12 Jun 2013 12:42:00 +0000 (13:42 +0100)
commit16f3b1246c134a4ed72779ce248902e9b03d38f6
tree4bf0c2adfc6b527feda399915e4b341f650095b8
parent634dc5d8a02c4de31c146e845e908f01d803d411
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