mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 16:14:59 +08:00
Merge pull request #1482 from AxisRay/fix-global-buffer-overflow
fix buffer overflow
This commit is contained in:
commit
4bcf1750d2
1 changed files with 4 additions and 4 deletions
|
@ -696,15 +696,15 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
if (card.sak == 0x20) {
|
||||
|
||||
if (card.ats_len >= 5) {
|
||||
if (str_startswith((const char *)card.ats + 1, STANDALONE_DESFIRE)) {
|
||||
if (0 == memcmp(card.ats + 1, STANDALONE_DESFIRE, 4)) {
|
||||
PrintAndLogEx(INFO, "Standalone DESFire");
|
||||
}
|
||||
if (str_startswith((const char *)card.ats + 1, JCOP_DESFIRE)) {
|
||||
if (0 == memcmp(card.ats + 1, JCOP_DESFIRE, 4)) {
|
||||
PrintAndLogEx(INFO, "JCOP DESFire");
|
||||
}
|
||||
}
|
||||
if (card.ats_len == 4) {
|
||||
if (str_startswith((const char *)card.ats + 1, JCOP3_DESFIRE)) {
|
||||
if (0 == memcmp(card.ats + 1, JCOP3_DESFIRE, 4)) {
|
||||
PrintAndLogEx(INFO, "JCOP3 DESFire");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue