mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix: stack corruptions. keep it simple. (coverty scan 170498, 170497, 170496)
This commit is contained in:
parent
b526492d3d
commit
f21555b1b2
2 changed files with 30 additions and 32 deletions
|
@ -1829,13 +1829,13 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_card, uint32_
|
|||
if(p_card) {
|
||||
memcpy(p_card->atqa, resp, 2);
|
||||
p_card->uidlen = 0;
|
||||
memset(p_card->uid,0,10);
|
||||
memset(p_card->uid, 0, 10);
|
||||
}
|
||||
|
||||
if (anticollision) {
|
||||
// clear uid
|
||||
if (uid_ptr)
|
||||
memset(uid_ptr,0,10);
|
||||
memset(uid_ptr, 0, 10);
|
||||
}
|
||||
|
||||
// reset the PCB block number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue