FIX: 'hf mf sniff' - possible mf frame sizes for Desfire is 256 or more

This commit is contained in:
iceman1001 2018-01-11 21:49:27 +01:00
parent 4e1d6072d2
commit 706287619a

View file

@ -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);