From: Iceman Date: Mon, 12 Jun 2017 13:07:00 +0000 (+0200) Subject: bug: hf mf chk - wrong size X-Git-Tag: v3.1.0~210^2 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/1e11e5d76208151660a58b67760a5276efc8ed58?hp=8040afa5ba915a022e28c0d61c81b773d4ed6686 bug: hf mf chk - wrong size bug: 'hf mf chk' - size of keycounter variable is too small for dictionary files larger than 256rows. --- diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 4cb9577b..d909cd8c 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -906,7 +906,7 @@ int CmdHF14AMfChk(const char *Cmd) char filename[FILE_PATH_SIZE]={0}; char buf[13]; uint8_t *keyBlock = NULL, *p; - uint8_t stKeyBlock = 20; + uint16_t stKeyBlock = 20; int i, res; int keycnt = 0;