diff options
-rw-r--r-- | src/phFriNfc_DesfireMap.c | 2 | ||||
-rw-r--r-- | src/phFriNfc_MifareULMap.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/phFriNfc_DesfireMap.c b/src/phFriNfc_DesfireMap.c index 6f132ea..d2f68dd 100644 --- a/src/phFriNfc_DesfireMap.c +++ b/src/phFriNfc_DesfireMap.c @@ -1671,7 +1671,7 @@ NFCSTATUS phFriNfc_Desfire_Update_SmartTagCapContainer(phFriNfc_NdefMap_t *N } /* check for the entire LENGTH Validity CCLEN + TLV L value == CCLEN*/ - if ( CapContSize != CCLen ) + if ( CapContSize < CCLen ) { ErrFlag=1; } diff --git a/src/phFriNfc_MifareULMap.c b/src/phFriNfc_MifareULMap.c index 8d1df81..efaaceb 100644 --- a/src/phFriNfc_MifareULMap.c +++ b/src/phFriNfc_MifareULMap.c @@ -1584,7 +1584,9 @@ static NFCSTATUS phFriNfc_MfUL_H_findNDEFTLV(phFriNfc_NdefMap_t *NdefMap, if ((NdefMap->SendRecvBuf[Temp16Bytes] == PH_FRINFC_NDEFMAP_MFUL_LOCK_CTRL_TLV) || (NdefMap->SendRecvBuf[Temp16Bytes] == - PH_FRINFC_NDEFMAP_MFUL_MEM_CTRL_TLV) ) + PH_FRINFC_NDEFMAP_MFUL_MEM_CTRL_TLV) || + (NdefMap->SendRecvBuf[Temp16Bytes] == + PH_FRINFC_NDEFMAP_MFUL_PROPRIETRY_TLV)) { NdefMap->TLVStruct.NdefTLVByte = |