summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2022-08-01 20:34:24 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2022-08-02 13:31:05 +0900
commitb6922282a9e5ede695b4294ffc4d696838523dd6 (patch)
tree92d058dd243d181605563c6086953d4bfca1ef1e /gsupplicant
parent16840f0a7e50911521dbd23900c01f9a78b70061 (diff)
downloadconnman-b6922282a9e5ede695b4294ffc4d696838523dd6.tar.gz
connman-b6922282a9e5ede695b4294ffc4d696838523dd6.tar.bz2
connman-b6922282a9e5ede695b4294ffc4d696838523dd6.zip
Check dbus path before constructing a new messagesubmit/tizen/20220802.050734accepted/tizen/unified/20220802.144710
>0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 --> glibc (rpm) >1 0xf7248780 in __GI_abort () at abort.c:79 --> glibc (rpm) >2 0xf74ba7ac in _dbus_abort () at dbus-sysdeps.c:93 --> dbus-libs (rpm) >3 0xf74af0d0 in _dbus_warn_check_failed (format=0xf74c05fc "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at dbus-internals.c:281 --> dbus-libs (rpm) >4 0xf74af7d8 in _dbus_warn_return_if_fail (function=<optimized out>, assertion=<optimized out>, file=<optimized out>, line=line@entry=1582) at dbus-internals.c:936 --> dbus-libs (rpm) >5 0xf749eba0 in dbus_message_new_method_call (destination=0xaacc16a4 "fi.w1.wpa_supplicant1", path=path@entry=0xac126b78 "", iface=iface@entry=0xaacc1648 "fi.w1.wpa_supplicant1.Interface", method=method@entry=0xaacc1b40 "AddNetwork") at dbus-message.c:1582 --> dbus-libs (rpm) >6 0xaac671d8 in supplicant_dbus_method_call (path=0xac126b78 "", interface=0xaacc1648 "fi.w1.wpa_supplicant1.Interface", method=0xaacc1b40 "AddNetwork", setup=0xaac64605 <interface_add_network_params>, function=0xaac62fb1 <interface_add_network_result>, user_data=user_data@entry=0xac125138, caller=0xac13ef30) at gsupplicant/dbus.c:505 --> connman (rpm) >7 0xaac5faee in decryption_request_reply (call=0xac12b080, user_data=0xac125138) at gsupplicant/supplicant.c:7629 --> connman (rpm) Change-Id: I87558f1894607bea53ecf7b3602f16d1e5aae5ac Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'gsupplicant')
-rwxr-xr-xgsupplicant/dbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsupplicant/dbus.c b/gsupplicant/dbus.c
index 9ad8e080..73c9acec 100755
--- a/gsupplicant/dbus.c
+++ b/gsupplicant/dbus.c
@@ -497,7 +497,10 @@ int supplicant_dbus_method_call(const char *path,
if (!path || !interface || !method)
return -EINVAL;
-
+#if defined TIZEN_EXT
+ if (strlen(path) == 0)
+ return -EINVAL;
+#endif
method_call = g_try_new0(struct method_call_data, 1);
if (!method_call)
return -ENOMEM;