projects
/
platform
/
core
/
api
/
libaccount-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b33684
)
[Non-ACR] add null check for strtok_r
46/253846/1
accepted/tizen/unified/20210223.065434
accepted/tizen/unified/20210225.130459
submit/tizen/20210222.065314
submit/tizen/20210224.130531
submit/tizen/20210225.052718
author
Abhishek Vijay
<abhishek.v@samsung.com>
Thu, 18 Feb 2021 11:48:03 +0000
(17:18 +0530)
committer
Abhishek Vijay
<abhishek.v@samsung.com>
Thu, 18 Feb 2021 11:48:03 +0000
(17:18 +0530)
Change-Id: I3ec186aabfd581822313bdebac54a34e882ec6cc
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
src/account.c
patch
|
blob
|
history
diff --git
a/src/account.c
b/src/account.c
index 315fa030a675d216460bfd2be0028fcab5a78078..1b89ea163f982b6cff76a54b0609bf25b3041d4a 100644
(file)
--- a/
src/account.c
+++ b/
src/account.c
@@
-3079,7
+3079,16
@@
static void _account_subscribe_vconf_callback_ex(keynode_t *key, void *user_data
char *ptr = NULL;
event_type = strtok_r(msg, ":", &ptr);
+ if (event_type == NULL) {
+ ACCOUNT_ERROR("event_type is NULL");
+ return;
+ }
+
id = strtok_r(NULL, ":", &ptr);
+ if (id == NULL) {
+ ACCOUNT_ERROR("account-id is NULL");
+ return;
+ }
ACCOUNT_SLOGD("msg(%s), event_type(%s), id(%s)", msg, event_type, id);