From ce40c4d067f24ed7c1a692f16d79f36b1a453410 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Apr 2021 12:20:31 +0200 Subject: [PATCH] hf iclass config - out of bounds check --- client/src/cmdhficlass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 6df780f06..6023e086d 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -3609,7 +3609,7 @@ static int CmdHFiClassConfigCard(const char * Cmd) { print_config_cards(); } - if (idx >= 0) { + if (idx > -1 && idx < 14) { const iclass_config_card_item_t *item = get_config_card_item(idx); print_config_card(item); }