- bigbuf.c is comparision correct (iLen versus numofparity)
- cmdhfepa.c resourceleak, add a call to free
- cipherutils.c resourceleak, added calls to free
traceLen += iLen;
// parity bytes
traceLen += iLen;
// parity bytes
+ if (num_paritybytes != 0) {
if (parity != NULL) {
memcpy(trace + traceLen, parity, num_paritybytes);
} else {
if (parity != NULL) {
memcpy(trace + traceLen, parity, num_paritybytes);
} else {
}
// print nonce
PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
}
// print nonce
PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
}
if (i < n - 1) {
sleep(d);
}
}
PrintAndLog("End: %u", time(NULL));
}
if (i < n - 1) {
sleep(d);
}
}
PrintAndLog("End: %u", time(NULL));
}
cx += snprintf(output+cx,outsize-cx,"};");
prnlog(output);
}
cx += snprintf(output+cx,outsize-cx,"};");
prnlog(output);
}
void printvar(char * name, uint8_t* arr, int len)
}
void printvar(char * name, uint8_t* arr, int len)
}
void printarr_human_readable(char * title, uint8_t* arr, int len)
}
void printarr_human_readable(char * title, uint8_t* arr, int len)