From 3e82f956d834faf9e78d9c3c2fccfb98d8041bcb Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Aug 2016 00:25:53 +0200 Subject: [PATCH] FIX: COverityScan 133865, out-of-bounds access, Forgot that bits is not used in Logtrace but bytes. --- armsrc/legicrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/legicrf.c b/armsrc/legicrf.c index c732ee14..0f886656 100644 --- a/armsrc/legicrf.c +++ b/armsrc/legicrf.c @@ -1572,7 +1572,7 @@ static void CodeAndTransmitLegicAsReader(const uint8_t *cmd, uint8_t cmdlen, int TransmitForLegic(); if (tracing) { uint8_t parity[1] = {0x00}; - LogTrace(cmd, bits, 0, 0, parity, TRUE); + LogTrace(cmd, cmdlen, 0, 0, parity, TRUE); } } -- 2.39.5