mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-01 02:27:21 +08:00
cppchecker
This commit is contained in:
parent
3ee657c0f7
commit
4ab382065a
1 changed files with 1 additions and 1 deletions
|
@ -1158,7 +1158,7 @@ static int CmdHFMFPChk(const char *Cmd) {
|
|||
int vpatternlen = 0;
|
||||
CLIGetHexWithReturn(ctx, 9, vpattern, &vpatternlen);
|
||||
if (vpatternlen > 0) {
|
||||
if (vpatternlen > 0 && vpatternlen <= 2) {
|
||||
if (vpatternlen <= 2) {
|
||||
startPattern = (vpattern[0] << 8) + vpattern[1];
|
||||
} else {
|
||||
PrintAndLogEx(ERR, "Pattern must be 2-byte length.");
|
||||
|
|
Loading…
Reference in a new issue