projects
/
platform
/
core
/
api
/
nfc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29593d
)
Add invalid parameter case
17/211617/1
accepted/tizen/unified/20190808.113657
submit/tizen/20190807.093025
author
Jung Jihoon
<jh8801.jung@samsung.com>
Wed, 7 Aug 2019 07:17:36 +0000
(16:17 +0900)
committer
Jung Jihoon
<jh8801.jung@samsung.com>
Wed, 7 Aug 2019 07:17:36 +0000
(16:17 +0900)
Change-Id: Idf99d5e60f9f30746bb8429730ba98dc93881607
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
src/nfc_card_emulation.c
patch
|
blob
|
history
diff --git
a/src/nfc_card_emulation.c
b/src/nfc_card_emulation.c
index
83599ba
..
082003b
100644
(file)
--- a/
src/nfc_card_emulation.c
+++ b/
src/nfc_card_emulation.c
@@
-421,6
+421,7
@@
int nfc_se_foreach_registered_aids(nfc_se_type_e se_type, nfc_card_emulation_cat
/* LCOV_EXCL_START */
CHECK_INIT();
CHECK_INVALID(callback == NULL);
+ CHECK_INVALID(category < NFC_CARD_EMULATION_CATEGORY_PAYMENT || category > NFC_CARD_EMULATION_CATEGORY_OTHER);
CHECK_ACTIVATED();
gdbus_nfc_context.on_se_registered_aid_cb = callback;