mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
FIX: Coverity, CID# 121337, Out-of-bounds. In the loop, variable i, can be as much as 1051, overflowing the databuf with size 1024.
This commit is contained in:
parent
5cba446201
commit
395ec4e99c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ int CmdLegicDecode(const char *Cmd)
|
||||||
int crc = 0;
|
int crc = 0;
|
||||||
int wrp = 0;
|
int wrp = 0;
|
||||||
int wrc = 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 out_string[3076]; // just use big buffer - bad practice
|
||||||
char token_type[4];
|
char token_type[4];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue