From 5fe0a11dfed1d22aeeb2642d7d1abae2fca56e7a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Aug 2016 00:10:21 +0200 Subject: [PATCH 1/1] FIX: CoverityScan, 1333853, out-of-bounds, well, if I have 3 items in a array, don't start reading 4... --- client/cmdlfjablotron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5