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:10 -0500
commita614d447f5a38481e700e5b2e1635692968a0fb9 (patch)
treeffdae31ec0644d3304fccf6df792abfc10b739a7
parent02c5e3e34238f159e02c3560e28dce8c20ce691d (diff)
downloadat-spi2-core-a614d447f5a38481e700e5b2e1635692968a0fb9.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))
{