mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-12 08:06:25 -07:00
FIX: mem leaks
FIX: 'hf mf nested' - params
This commit is contained in:
parent
956899b839
commit
06ade9970a
6 changed files with 23 additions and 15 deletions
|
@ -608,7 +608,7 @@ static int l_hardnested(lua_State *L){
|
|||
char filename[FILE_PATH_SIZE]="nonces.bin";
|
||||
const char *p_filename = luaL_checklstring(L, 11, &size);
|
||||
if(size != 0)
|
||||
strcpy(filename, p_filename);
|
||||
memcpy(filename, p_filename, FILE_PATH_SIZE-1);
|
||||
|
||||
uint32_t blockNo = 0, keyType = 0;
|
||||
uint32_t trgBlockNo = 0, trgKeyType = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue