mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-21 07:46:12 +08:00
Merge pull request #656 from uhei/legic-wrbl-out-of-bounds
hf legic wrbl: fix Out-of-bounds check
This commit is contained in:
commit
52e94f21f0
|
@ -681,7 +681,7 @@ static int CmdLegicWrbl(const char *Cmd) {
|
|||
return PM3_EOUTOFBOUND;
|
||||
}
|
||||
|
||||
if (len + offset >= card.cardsize) {
|
||||
if (len + offset > card.cardsize) {
|
||||
PrintAndLogEx(WARNING, "Out-of-bounds, Cardsize = %d, [offset+len = %d ]", card.cardsize, len + offset);
|
||||
return PM3_EOUTOFBOUND;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue