summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <jan.r.brands@nxp.com>2011-01-25 13:11:36 +0100
committerNick Pelly <npelly@google.com>2011-01-25 07:00:17 -0800
commit442bead483a0a6fd9254fc83a5ea76474c6dbbe7 (patch)
treec1f616ca7e7c01bfc7e5b5f27f427e96289c8c40
parent75d1d112cfdb7dbdc7d98b0ca59a8eacca9aa08f (diff)
downloadlibnfc-nxp-442bead483a0a6fd9254fc83a5ea76474c6dbbe7.tar.gz
Change-Id: If6b490d906fcc37960a1120e9344470d68c825f6
-rw-r--r--src/phFriNfc_MifareULMap.c5
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)