mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
FIX: CoverityScan, 1333853, out-of-bounds, well, if I have 3 items in a array, don't start reading 4...
This commit is contained in:
parent
9320c73634
commit
5fe0a11dfe
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ int CmdJablotronClone(const char *Cmd) {
|
|||
UsbCommand resp;
|
||||
UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}};
|
||||
|
||||
for (int i=4; i>=0; i--) {
|
||||
for (int i=3; i>=0; i--) {
|
||||
c.arg[0] = blocks[i];
|
||||
c.arg[1] = i;
|
||||
clearCommandBuffer();
|
||||
|
|
Loading…
Add table
Reference in a new issue