OSDN Git Service

core/advertising: Fix crash when passing invalid dictionary
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 17 Nov 2016 13:59:42 +0000 (15:59 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 17 Nov 2016 13:59:42 +0000 (15:59 +0200)
commitd356a6242be9a1aba2cca871b79618e3b28a5ec2
treeb00cad06a8611f6fb460fd158a7bb83806079f49
parent030cb8fbe41707e6db230ae5eb7fa9eae66db11a
core/advertising: Fix crash when passing invalid dictionary

We expect dict entries to have a{sv} format but the code don't check if
the entries really encode the variant which may lead to a crash in
dbus_message_iter_recurse.
src/advertising.c