mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
chg: converting malloc calls -> calloc which zeros out the allocated memory
This commit is contained in:
parent
989b80007c
commit
939b727c42
9 changed files with 55 additions and 50 deletions
|
@ -2988,7 +2988,7 @@ int CmdHf14AMfDecryptBytes(const char *Cmd){
|
|||
PrintAndLogEx(NORMAL, "ar enc\t%08X", ar_enc);
|
||||
PrintAndLogEx(NORMAL, "at enc\t%08X", at_enc);
|
||||
|
||||
uint8_t *data = malloc(len);
|
||||
uint8_t *data = calloc(len, sizeof(uint8_t));
|
||||
param_gethex_ex(Cmd, 3, data, &len);
|
||||
len >>= 1;
|
||||
tryDecryptWord( nt, ar_enc, at_enc, data, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue