mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix CID #405230 - array too small
This commit is contained in:
parent
173841b533
commit
95a19405d8
1 changed files with 3 additions and 3 deletions
|
@ -424,8 +424,8 @@ static int CmdrevengSearch(const char *Cmd) {
|
|||
uint8_t width[NMODELS] = {0};
|
||||
int count = 0;
|
||||
|
||||
char result[30];
|
||||
char revResult[30];
|
||||
char result[50 + 1] = {0};
|
||||
char revResult[50 + 1] = {0};
|
||||
int ans = GetModels(Models, &count, width);
|
||||
bool found = false;
|
||||
if (!ans) {
|
||||
|
@ -461,7 +461,7 @@ static int CmdrevengSearch(const char *Cmd) {
|
|||
continue;
|
||||
}
|
||||
|
||||
memset(result, 0, 30);
|
||||
memset(result, 0, sizeof(result));
|
||||
char *inCRC = calloc(crcChars + 1, sizeof(char));
|
||||
if (inCRC == NULL) {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue