mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -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->output[tag->len] = tag->shiftReg;
|
||||||
tag->len++;
|
tag->len++;
|
||||||
|
|
||||||
if (tag->len >= tag->max_len) {
|
if (tag->len > tag->max_len) {
|
||||||
// buffer overflow, give up
|
// buffer overflow, give up
|
||||||
LED_C_OFF();
|
LED_C_OFF();
|
||||||
return true;
|
return true;
|
||||||
|
@ -540,7 +540,7 @@ static RAMFUNC int Handle15693SamplesFromTag(uint16_t amplitude, DecodeTag_t *ta
|
||||||
tag->output[tag->len] = tag->shiftReg;
|
tag->output[tag->len] = tag->shiftReg;
|
||||||
tag->len++;
|
tag->len++;
|
||||||
|
|
||||||
if (tag->len >= tag->max_len) {
|
if (tag->len > tag->max_len) {
|
||||||
// buffer overflow, give up
|
// buffer overflow, give up
|
||||||
tag->posCount = 0;
|
tag->posCount = 0;
|
||||||
tag->previous_amplitude = amplitude;
|
tag->previous_amplitude = amplitude;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue