]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Fixed buffer corruption in iso1443a_select_card, affecting several operations, e...
authormartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 11 May 2013 12:13:17 +0000 (12:13 +0000)
committermartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 11 May 2013 12:13:17 +0000 (12:13 +0000)
armsrc/iso14443a.c

index d174a31e20acf85c3032c12a2916c5c73ef38422..bbe748b06b718b3cc977792d79ef9a7e9cfc31a5 100644 (file)
@@ -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
Impressum, Datenschutz