From 706287619a4bc1b61ddc85747f998c54f4d7081e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 11 Jan 2018 21:49:27 +0100 Subject: [PATCH] FIX: 'hf mf sniff' - possible mf frame sizes for Desfire is 256 or more --- client/mifarehost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mifarehost.c b/client/mifarehost.c index 45c215ed8..99ced033d 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -659,12 +659,12 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) { if (traceState == TRACE_ERROR) return 1; - if (len > 64) { + if (len > 255) { traceState = TRACE_ERROR; return 1; } - uint8_t data[64]; + uint8_t data[255]; memset(data, 0x00, sizeof(data)); memcpy(data, data_src, len);