projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
607499f
)
Add the type check logic to avoid crash
15/200415/1
accepted/tizen_4.0_unified
accepted/tizen/4.0/unified/20190226.044243
submit/tizen_4.0/20190225.020515
author
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 25 Feb 2019 00:50:54 +0000
(09:50 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 25 Feb 2019 01:15:57 +0000
(10:15 +0900)
Change-Id: I6a29c351bb52ab39df60ebe8812166e808c08745
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-event-receiver.c
patch
|
blob
|
history
diff --git
a/bt-service/bt-service-event-receiver.c
b/bt-service/bt-service-event-receiver.c
index
f3d50f3
..
563b8f6
100644
(file)
--- a/
bt-service/bt-service-event-receiver.c
+++ b/
bt-service/bt-service-event-receiver.c
@@
-2890,6
+2890,11
@@
static void __bt_manager_event_filter(GDBusConnection *connection,
char *previous = NULL;
char *current = NULL;
+ if (g_strcmp0(g_variant_get_type_string(parameters), "(sss)") != 0) {
+ BT_ERR("Invalid variant format");
+ return;
+ }
+
if (__bt_get_owner_info(parameters, &name, &previous, ¤t)) {
BT_ERR("Fail to get the owner info");
return;