diff options
author | Jan <jan.r.brands@nxp.com> | 2011-01-25 13:11:36 +0100 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-01-25 07:00:17 -0800 |
commit | 442bead483a0a6fd9254fc83a5ea76474c6dbbe7 (patch) | |
tree | c1f616ca7e7c01bfc7e5b5f27f427e96289c8c40 | |
parent | 75d1d112cfdb7dbdc7d98b0ca59a8eacca9aa08f (diff) | |
download | libnfc-nxp-442bead483a0a6fd9254fc83a5ea76474c6dbbe7.tar.gz |
Fixed issue with max size NDEF message on T2Tandroid-cts-2.3_r2android-2.3.3_r1aandroid-2.3.3_r1.1android-2.3.3_r1
Change-Id: If6b490d906fcc37960a1120e9344470d68c825f6
-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) |