]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
bug: hf mf chk - wrong size 319/head
authorIceman <iceman@iuse.se>
Mon, 12 Jun 2017 13:07:00 +0000 (15:07 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jun 2017 13:07:00 +0000 (15:07 +0200)
bug:  'hf mf chk' - size of keycounter variable is too small for dictionary files larger than 256rows.

client/cmdhfmf.c

index 4cb9577bc59fdfd772921d34685cc2c843aa6b52..d909cd8c8f9e1fa690ad93871955c0381d53e5a4 100644 (file)
@@ -906,7 +906,7 @@ int CmdHF14AMfChk(const char *Cmd)
        char filename[FILE_PATH_SIZE]={0};\r
        char buf[13];\r
        uint8_t *keyBlock = NULL, *p;\r
        char filename[FILE_PATH_SIZE]={0};\r
        char buf[13];\r
        uint8_t *keyBlock = NULL, *p;\r
-       uint8_t stKeyBlock = 20;\r
+       uint16_t stKeyBlock = 20;\r
        \r
        int i, res;\r
        int     keycnt = 0;\r
        \r
        int i, res;\r
        int     keycnt = 0;\r
Impressum, Datenschutz