mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix CID# 405674 - array uninitialized
This commit is contained in:
parent
e1d90b3de2
commit
97dced62f4
1 changed files with 2 additions and 0 deletions
|
@ -1905,6 +1905,8 @@ void MifareChkKeys(uint8_t *datain, uint8_t reserved_mem) {
|
||||||
bool found;
|
bool found;
|
||||||
} PACKED keyresult;
|
} PACKED keyresult;
|
||||||
keyresult.found = false;
|
keyresult.found = false;
|
||||||
|
memset(keyresult.key, 0x00, sizeof(keyresult.key));
|
||||||
|
|
||||||
bool have_uid = false;
|
bool have_uid = false;
|
||||||
|
|
||||||
uint8_t keyType = datain[0];
|
uint8_t keyType = datain[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue