mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
reverse length check
This commit is contained in:
parent
815e004b8d
commit
b273a6c831
1 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ static RAMFUNC int Handle15693SamplesFromTag(uint16_t amplitude, DecodeTag_t *ta
|
|||
tag->output[tag->len] = tag->shiftReg;
|
||||
tag->len++;
|
||||
|
||||
if (tag->len >= tag->max_len) {
|
||||
if (tag->len > tag->max_len) {
|
||||
// buffer overflow, give up
|
||||
LED_C_OFF();
|
||||
return true;
|
||||
|
@ -540,7 +540,7 @@ static RAMFUNC int Handle15693SamplesFromTag(uint16_t amplitude, DecodeTag_t *ta
|
|||
tag->output[tag->len] = tag->shiftReg;
|
||||
tag->len++;
|
||||
|
||||
if (tag->len >= tag->max_len) {
|
||||
if (tag->len > tag->max_len) {
|
||||
// buffer overflow, give up
|
||||
tag->posCount = 0;
|
||||
tag->previous_amplitude = amplitude;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue