From ea73261dc693f8504ef76653fc584d6c5ce2c76c Mon Sep 17 00:00:00 2001 From: "martin.holst@gmail.com" Date: Sat, 11 May 2013 12:13:17 +0000 Subject: [PATCH] Fixed buffer corruption in iso1443a_select_card, affecting several operations, e.g. hf mf mifare and probably a few more --- armsrc/iso14443a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index d174a31e..bbe748b0 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1625,7 +1625,7 @@ int iso14443a_select_card(byte_t* uid_ptr, iso14a_card_select_t* p_hi14a_card, u // clear uid if (uid_ptr) { - memset(uid_ptr,0,10); + memset(uid_ptr,0,8); } // OK we will select at least at cascade 1, lets see if first byte of UID was 0x88 in -- 2.39.5