mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 23:24:22 +08:00
fix buffer overflow
This commit is contained in:
parent
1cdddc270f
commit
d6145d76e7
1 changed files with 4 additions and 3 deletions
|
@ -689,9 +689,10 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
iso14a_card_select_t card;
|
||||
res = SelectCard14443A_4(true, false, &card);
|
||||
if (res == PM3_SUCCESS) {
|
||||
static const char STANDALONE_DESFIRE[] = { 0x75, 0x77, 0x81, 0x02};
|
||||
static const char JCOP_DESFIRE[] = { 0x75, 0xf7, 0xb1, 0x02 };
|
||||
static const char JCOP3_DESFIRE[] = { 0x78, 0x77, 0x71, 0x02 };
|
||||
// convert to str by adding \0 to the end. so we can use strlen() to calc length
|
||||
static const char STANDALONE_DESFIRE[] = { 0x75, 0x77, 0x81, 0x02, '\0' };
|
||||
static const char JCOP_DESFIRE[] = { 0x75, 0xf7, 0xb1, 0x02, '\0' };
|
||||
static const char JCOP3_DESFIRE[] = { 0x78, 0x77, 0x71, 0x02, '\0' };
|
||||
|
||||
if (card.sak == 0x20) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue