From: iceman1001 Date: Tue, 2 Aug 2016 22:10:21 +0000 (+0200) Subject: FIX: CoverityScan, 1333853, out-of-bounds, well, if I have 3 items in a array... X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/5fe0a11dfed1d22aeeb2642d7d1abae2fca56e7a?hp=9320c7363490afd4122fa0c713ef983378c960fb FIX: CoverityScan, 1333853, out-of-bounds, well, if I have 3 items in a array, don't start reading 4... --- diff --git a/client/cmdlfjablotron.c b/client/cmdlfjablotron.c index 1f279a3b..cae1bc8c 100644 --- a/client/cmdlfjablotron.c +++ b/client/cmdlfjablotron.c @@ -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();