diff --git a/client/src/cmdlfem4x.c b/client/src/cmdlfem4x.c index 1bcd5b244..5e008b369 100644 --- a/client/src/cmdlfem4x.c +++ b/client/src/cmdlfem4x.c @@ -1703,6 +1703,9 @@ static void unlock_add_item(em4x05_unlock_item_t *array, uint8_t len, uint32_t v } } + if (i >= len ) + return; + array[i].cnt++; array[i].value = value; }