mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
FIX: 'hf mf sniff' - possible mf frame sizes for Desfire is 256 or more
This commit is contained in:
parent
4e1d6072d2
commit
706287619a
1 changed files with 2 additions and 2 deletions
|
@ -659,12 +659,12 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) {
|
||||||
|
|
||||||
if (traceState == TRACE_ERROR) return 1;
|
if (traceState == TRACE_ERROR) return 1;
|
||||||
|
|
||||||
if (len > 64) {
|
if (len > 255) {
|
||||||
traceState = TRACE_ERROR;
|
traceState = TRACE_ERROR;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t data[64];
|
uint8_t data[255];
|
||||||
memset(data, 0x00, sizeof(data));
|
memset(data, 0x00, sizeof(data));
|
||||||
|
|
||||||
memcpy(data, data_src, len);
|
memcpy(data, data_src, len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue