activation: Don't leak if delivering activation message is forbidden
authorSimon McVittie <smcv@collabora.com>
Fri, 17 Aug 2018 14:42:17 +0000 (15:42 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 3 Dec 2018 16:32:31 +0000 (16:32 +0000)
commitaa427663405284853f42923fb272e195b7b4c3ac
treea38a47b0ba86e6661f1efc042a12c13ca9238fb2
parenta6bae612ad5fde1e310aadd357ef34bdde50ed1e
activation: Don't leak if delivering activation message is forbidden

This is technically a denial of service because the dbus-daemon will
run out of memory eventually, but it's a very slow and noisy one,
because all the rejected messages are also very likely to have
been logged to the system log.

Detected by AddressSanitizer.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: https://gitlab.freedesktop.org/dbus/dbus/issues/234
Reviewed-by: pwithnall
bus/activation.c