mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-13 01:57:25 -07:00
coverity fix
This commit is contained in:
parent
f870abf454
commit
cdf920b289
1 changed files with 2 additions and 0 deletions
|
@ -662,6 +662,8 @@ static int CmdLegicWrbl(const char *Cmd) {
|
|||
// OUT-OF-BOUNDS checks
|
||||
// UID 4+1 bytes can't be written to.
|
||||
if (offset < 5) {
|
||||
if (data)
|
||||
free(data);
|
||||
PrintAndLogEx(WARNING, "Out-of-bounds, bytes 0-1-2-3-4 can't be written to. Offset = %d", offset);
|
||||
return PM3_EOUTOFBOUND;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue