diff options
Diffstat (limited to 'src/phFriNfc_MifareULMap.c')
-rw-r--r-- | src/phFriNfc_MifareULMap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/phFriNfc_MifareULMap.c b/src/phFriNfc_MifareULMap.c index 6ce368e..8d1df81 100644 --- a/src/phFriNfc_MifareULMap.c +++ b/src/phFriNfc_MifareULMap.c @@ -2459,7 +2459,10 @@ static NFCSTATUS phFriNfc_MfUL_H_CopyRdBytes(phFriNfc_NdefMap_t *NdefMap) if (NdefMap->MifareULContainer.CurrentBlock == NdefMap->TLVStruct.NdefTLVBlock) { - v_field_byte = NdefMap->TLVStruct.NdefTLVByte; + if (NdefMap->CardMemSize > (0x12 * PH_FRINFC_NDEFMAP_MFUL_MUL8)) + { + v_field_byte = NdefMap->TLVStruct.NdefTLVByte; + } /* Calculate the Value field of the TLV to read */ if (NdefMap->TLVStruct.ActualSize >= 0xFF) |