From: Shinwoo Kim Date: Tue, 12 Sep 2017 11:37:56 +0000 (+0900) Subject: check reply message of "GetNeighbor" X-Git-Tag: submit/tizen_4.0/20170915.080118^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fat-spi2-core.git;a=commitdiff_plain;h=3a9c9c1329b99297630576005c54ee601580bd02 check reply message of "GetNeighbor" The dbus_message_iter_init makes a crash if a message(reply) is NULL. The message(reply) is NULL with following error message. error message: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Change-Id: I64c9f468f26299af86ee52dff3714b03112d49e3 --- diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 40053f2..752001c 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -617,6 +617,7 @@ atspi_accessible_get_neighbor (AtspiAccessible *root, const char *path = are_objects_on_the_same_bus(root, start) ? root_path : ""; DBusMessage *reply = _atspi_dbus_call_partial (start, atspi_interface_accessible, "GetNeighbor", error, "sii", path, (int)direction, (int)search_mode); + _ATSPI_DBUS_CHECK_SIG (reply, "(so)y", error, NULL); dbus_message_iter_init (reply, &iter); AtspiAccessible *ret = _atspi_dbus_return_accessible_from_iter (&iter);