mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
cppcheck mem alloc: oops forgot to save one file
This commit is contained in:
parent
678b387c3f
commit
74c60301d1
1 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,10 @@ static int CmdHF14AJookiSim(const char *Cmd) {
|
|||
|
||||
// hf mfu sim...
|
||||
uint8_t *data = calloc(144, sizeof(uint8_t));
|
||||
if (data == NULL) {
|
||||
PrintAndLogEx(ERR, "Memory allocation failed");
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
|
||||
memcpy(data, uid, 3);
|
||||
memcpy(data + (1 * 4), uid + 3, 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue