mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
FIX: mem leaks
FIX: 'hf mf nested' - params
This commit is contained in:
parent
956899b839
commit
06ade9970a
6 changed files with 23 additions and 15 deletions
|
@ -14,7 +14,6 @@ static int CmdHelp(const char *Cmd);
|
|||
// trace pointer
|
||||
static uint8_t *trace;
|
||||
long traceLen = 0;
|
||||
bool preRDV40 = true;
|
||||
|
||||
int usage_trace_list(){
|
||||
PrintAndLogEx(NORMAL, "List protocol data in trace buffer.");
|
||||
|
@ -297,8 +296,9 @@ void printFelica(uint16_t traceLen, uint8_t *trace) {
|
|||
|
||||
if (tracepos + 3 >= traceLen) break;
|
||||
|
||||
uint16_t gap = (uint16_t)trace[tracepos+1] + ((uint16_t)trace[tracepos] >> 8);
|
||||
uint16_t crc_ok = trace[tracepos+2];
|
||||
|
||||
uint16_t gap = *((uint16_t *)(trace + tracepos));
|
||||
uint8_t crc_ok = trace[tracepos+2];
|
||||
tracepos += 3;
|
||||
|
||||
if (tracepos + 3 >= traceLen) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue