From 1e11e5d76208151660a58b67760a5276efc8ed58 Mon Sep 17 00:00:00 2001 From: Iceman Date: Mon, 12 Jun 2017 15:07:00 +0200 Subject: [PATCH] bug: hf mf chk - wrong size bug: 'hf mf chk' - size of keycounter variable is too small for dictionary files larger than 256rows. --- client/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2