mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
BUGS: more Coverity scan fixes.
This commit is contained in:
parent
2696349f16
commit
664bb5ae72
6 changed files with 10 additions and 13 deletions
|
@ -1202,7 +1202,7 @@ int CmdHF14AMfELoad(const char *Cmd)
|
|||
|
||||
if (len > FILE_PATH_SIZE) len = FILE_PATH_SIZE;
|
||||
|
||||
fnameptr += len;
|
||||
fnameptr += len-4;
|
||||
|
||||
sprintf(fnameptr, ".eml");
|
||||
|
||||
|
@ -1593,6 +1593,7 @@ int CmdHF14AMfCLoad(const char *Cmd)
|
|||
|
||||
if (fgets(buf, sizeof(buf), f) == NULL) {
|
||||
PrintAndLog("File reading error.");
|
||||
fclose(f);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
@ -1600,6 +1601,7 @@ int CmdHF14AMfCLoad(const char *Cmd)
|
|||
if(strlen(buf) && feof(f))
|
||||
break;
|
||||
PrintAndLog("File content error. Block data must include 32 HEX symbols");
|
||||
fclose(f);
|
||||
return 2;
|
||||
}
|
||||
for (i = 0; i < 32; i += 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue