mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
added bounds checking for when the proxmark3 is simulating a ISO14443a tag
This commit is contained in:
parent
129d6f1e6d
commit
7a4bd03cc0
11 changed files with 55 additions and 47 deletions
|
@ -307,7 +307,7 @@ void RunMod(void) {
|
|||
// add loop visa
|
||||
// for (int i = 0; i < ARRAYLEN(AIDlist); i ++) {
|
||||
// hexstr_to_byte_array("a0da02631a440a44000000a012ad10a00e800200048108", sam_apdu, &sam_len);
|
||||
uint8_t apdulen = iso14_apdu(apdus[i], (uint16_t) apduslen[i], false, apdubuffer, NULL);
|
||||
uint8_t apdulen = iso14_apdu(apdus[i], (uint16_t) apduslen[i], false, apdubuffer, sizeof(apdubuffer), NULL);
|
||||
|
||||
if (apdulen > 0) {
|
||||
DbpString("[ " _YELLOW_("Proxmark command") " ]");
|
||||
|
@ -404,7 +404,7 @@ void RunMod(void) {
|
|||
for (;;) {
|
||||
LED_B_OFF();
|
||||
// clean receive command buffer
|
||||
if (GetIso14443aCommandFromReader(receivedCmd, receivedCmdPar, &len) == false) {
|
||||
if (GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len) == false) {
|
||||
DbpString("Emulator stopped");
|
||||
retval = PM3_EOPABORTED;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue