From 7c0c4e2e7dbc3780632a2f54a7f354e9360e3b1e Mon Sep 17 00:00:00 2001 From: tharexde Date: Sat, 14 Nov 2020 00:08:37 +0100 Subject: [PATCH] deleted unnecessary memory checks (passwords are uploaded blockwise, the more passwords the more blocks) --- client/src/cmdlfem4x50.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index dca26cbc8..03749eb77 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -1312,15 +1312,6 @@ int CmdEM4x50Chk(const char *Cmd) { res = loadFileDICTIONARY(filename, data + 2, &datalen, 4, &key_count); if (res || !key_count) return PM3_EFILE; - - // limited space on flash mem - if (key_count > 0xFFFF) - key_count &= 0xFFFF; - - if (datalen > FLASH_MEM_MAX_SIZE) { - PrintAndLogEx(FAILED, "error, filesize is larger than available memory"); - return PM3_EOVFLOW; - } PrintAndLogEx(INFO, "You can cancel this operation by pressing the pm3 button");