diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-04-16 12:11:38 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-06-25 17:19:00 +0100 |
commit | 8b7e4a1c4ae055864e26db4addbcc2dc38ee6963 (patch) | |
tree | ef09ff3fcd781fbf02a41507fa2818afe05a8cef /.gitignore | |
parent | 82d45d15088d206f1e1f024215e95301fa04e92c (diff) | |
download | dbus-glib-8b7e4a1c4ae055864e26db4addbcc2dc38ee6963.tar.gz |
Fix two crashes when dbus_g_proxy_new_for_peer is used on a bus
The first part of the bug is that when NameOwnerChanged is received with
a dbus_g_proxy_new_for_peer (which has no name) alive, checking
whether it was affected by the NameOwnerChanged caused a NULL
dereference and segfault.
The second part of the bug is that if the last proxy in existence is
for a peer, when it was unregistered there would be no owner_match_rules,
causing a crash.
Both are exercised in the new test added here.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41126
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -200,6 +200,7 @@ test/core/peer-client test/core/peer-server test/core/test-dbus-glib /test/core/test-error-mapping +/test/core/test-peer-on-bus test/core/test-profile test/core/test-proxy-peer test/core/test-service-glib |