bug: hf mf chk - wrong size

bug:  'hf mf chk' - size of keycounter variable is too small for dictionary files larger than 256rows.
This commit is contained in:
Iceman 2017-06-12 15:07:00 +02:00 committed by GitHub
commit 1e11e5d762

View file

@ -906,7 +906,7 @@ int CmdHF14AMfChk(const char *Cmd)
char filename[FILE_PATH_SIZE]={0}; char filename[FILE_PATH_SIZE]={0};
char buf[13]; char buf[13];
uint8_t *keyBlock = NULL, *p; uint8_t *keyBlock = NULL, *p;
uint8_t stKeyBlock = 20; uint16_t stKeyBlock = 20;
int i, res; int i, res;
int keycnt = 0; int keycnt = 0;