mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverity 298509, 298508, 294394
This commit is contained in:
parent
235691c2d8
commit
700f0624a4
2 changed files with 3 additions and 3 deletions
|
@ -976,7 +976,7 @@ static int CmdHFiClassReader_Replay(const char *Cmd) {
|
||||||
FillFileNameByUID(filename, tag_data, "-dump", 8);
|
FillFileNameByUID(filename, tag_data, "-dump", 8);
|
||||||
|
|
||||||
// save the dump to .bin file
|
// save the dump to .bin file
|
||||||
PrintAndLogEx(SUCCESS, "saving dump file - %zu blocks read", bytes_got / 8);
|
PrintAndLogEx(SUCCESS, "saving dump file - %u blocks read", bytes_got / 8);
|
||||||
saveFile(filename, ".bin", tag_data, bytes_got);
|
saveFile(filename, ".bin", tag_data, bytes_got);
|
||||||
saveFileEML(filename, tag_data, bytes_got, 8);
|
saveFileEML(filename, tag_data, bytes_got, 8);
|
||||||
saveFileJSON(filename, jsfIclass, tag_data, bytes_got, NULL);
|
saveFileJSON(filename, jsfIclass, tag_data, bytes_got, NULL);
|
||||||
|
@ -1855,7 +1855,7 @@ write_dump:
|
||||||
}
|
}
|
||||||
|
|
||||||
// save the dump to .bin file
|
// save the dump to .bin file
|
||||||
PrintAndLogEx(SUCCESS, "saving dump file - %zu blocks read", bytes_got / 8);
|
PrintAndLogEx(SUCCESS, "saving dump file - %u blocks read", bytes_got / 8);
|
||||||
saveFile(filename, ".bin", tag_data, bytes_got);
|
saveFile(filename, ".bin", tag_data, bytes_got);
|
||||||
saveFileEML(filename, tag_data, bytes_got, 8);
|
saveFileEML(filename, tag_data, bytes_got, 8);
|
||||||
saveFileJSON(filename, jsfIclass, tag_data, bytes_got, NULL);
|
saveFileJSON(filename, jsfIclass, tag_data, bytes_got, NULL);
|
||||||
|
|
|
@ -202,7 +202,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||||
data_len = hdr->data_len;
|
data_len = hdr->data_len;
|
||||||
|
|
||||||
if (tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr) > traceLen) {
|
if (tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr) > traceLen) {
|
||||||
PrintAndLogEx(DEBUG, "trace pos offset %d larger than reported tracelen %d", tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr), traceLen);
|
PrintAndLogEx(DEBUG, "trace pos offset %u larger than reported tracelen %u", tracepos + TRACELOG_HDR_LEN + data_len + TRACELOG_PARITY_LEN(hdr), traceLen);
|
||||||
return traceLen;
|
return traceLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue