]> git.ipfire.org Git - thirdparty/dbus.git/commit
DBusMessage: assert the properties we need DBusMessageIter to have
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Feb 2016 14:58:59 +0000 (14:58 +0000)
committerSimon McVittie <smcv@debian.org>
Wed, 2 Mar 2016 18:15:36 +0000 (18:15 +0000)
commit338cfa15992b73d2cd43a50c84bf5ebc4eeda04f
tree46edfbde971605c6dd9f2c0500a68bf2fbaabf5c
parentca9ea25e1122b33eaf15c63e4c34ebc157c39f6f
DBusMessage: assert the properties we need DBusMessageIter to have

We already asserted that DBusMessageIter must be at least as large
as DBusMessageRealIter (so that casting DBusMessageIter * to
DBusMessageRealIter * does not result in overflowing the stack
variable). Also assert that it must have alignment requirements at
least as strict as those of DBusMessageRealIter * (so that casting
does not increase the required alignment).

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Thiago Macieira <thiago@kde.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94136
dbus/dbus-message.c