From faf1c918706041db3b86b9553bf29f03b6241300 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 29 Sep 2017 16:35:41 +0900 Subject: [PATCH] add return check for eldbus Change-Id: I366df41ee38dc29ab5a9448e378e4a2064bac7cd --- src/lib/elm_app_client.c | 8 ++++++-- src/lib/elm_atspi_bridge.c | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_app_client.c b/src/lib/elm_app_client.c index 5c4bd31..f3299f0 100644 --- a/src/lib/elm_app_client.c +++ b/src/lib/elm_app_client.c @@ -28,8 +28,12 @@ _sub_path_process(Elm_App_Client *eo, Eldbus_Message_Iter *obj_iter, Elm_App_Cli Eldbus_Message_Iter *array_props; Elm_App_Client_View *view; - eldbus_message_iter_arguments_get(iface, "sa{sv}", &iface_name, - &array_props); + if (!eldbus_message_iter_arguments_get(iface, "sa{sv}", &iface_name, &array_props)) + { + ERR("Unable to get message arguments"); + continue; + } + if (strcmp(iface_name, "org.enlightenment.ApplicationView1")) continue; diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c index 9dfecc8..821a50c 100644 --- a/src/lib/elm_atspi_bridge.c +++ b/src/lib/elm_atspi_bridge.c @@ -5409,7 +5409,11 @@ _registered_listeners_get(void *data, const Eldbus_Message *msg, Eldbus_Pending } while (eldbus_message_iter_get_and_next(iter, 'r', &siter)) { - eldbus_message_iter_arguments_get(siter, "ss", &bus, &event); + if (!eldbus_message_iter_arguments_get(siter, "ss", &bus, &event)) + { + ERR("Unable to get message arguments"); + continue; + } _set_broadcast_flag(event, data); } -- 2.7.4