summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2015-10-01 12:43:23 -0400
committerMike Gorse <mgorse@suse.com>2015-10-12 13:31:16 -0500
commitd8ba98d46f16f6d327d74b52e9d7ff9eecf723eb (patch)
tree059b3da01ae416992df6c3ba02adfb5fdaae8e6e
parentce7357e55a786ffd2df7ddd06ffcbb2bce6d4201 (diff)
downloadat-spi2-core-d8ba98d46f16f6d327d74b52e9d7ff9eecf723eb.tar.gz
Don't crash if we get a object:children-changed event with a non-existent child
If we get a :children-changed event with the path for the child not matching any accessible in the application, event->any_data would end up with a NULL child, triggering a crash. https://bugzilla.gnome.org/show_bug.cgi?id=755951
-rw-r--r--atspi/atspi-event-listener.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 7746ea1f..be7d3e94 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -207,6 +207,8 @@ cache_process_children_changed (AtspiEvent *event)
return;
child = g_value_get_object (&event->any_data);
+ if (child)
+ return;
if (!strncmp (event->type, "object:children-changed:add", 27))
{