mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix overflow
This commit is contained in:
parent
ffffa77dd9
commit
a7b7e0ba9b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue