From: marshmellow42 Date: Sun, 14 Feb 2016 17:36:55 +0000 (-0500) Subject: FIX: Coverity, Out-of-bounds. In the loop, variable i, can... X-Git-Tag: v2.3.0~7^2~8 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/568377946c910e27a319f39e4f81e6f3fd72ee92?hp=165e0775b1660a4dfc1f95338585bcb663b6b5e7 FIX: Coverity, Out-of-bounds. In the loop, variable i, can... ...be as much as 1051, overflowing the databuf with size 1024. --- diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index 7ee601b2..4e52c35c 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -58,7 +58,7 @@ int CmdLegicDecode(const char *Cmd) int crc = 0; int wrp = 0; int wrc = 0; - uint8_t data_buf[1024]; // receiver buffer + uint8_t data_buf[1052]; // receiver buffer char out_string[3076]; // just use big buffer - bad practice char token_type[4];