]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: CoverityScan, 1333853, out-of-bounds, well, if I have 3 items in a array...
authoriceman1001 <iceman@iuse.se>
Tue, 2 Aug 2016 22:10:21 +0000 (00:10 +0200)
committericeman1001 <iceman@iuse.se>
Tue, 2 Aug 2016 22:10:21 +0000 (00:10 +0200)
client/cmdlfjablotron.c

index 1f279a3b3b113a7c16e5373dfdf5af04972f0b31..cae1bc8c692611eb6feb675ddbc81ddc91a55b37 100644 (file)
@@ -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();
Impressum, Datenschutz