Skip to content

checksum verification#143

Open
Thialf wants to merge 6 commits intoadafruit:masterfrom
Thialf:master
Open

checksum verification#143
Thialf wants to merge 6 commits intoadafruit:masterfrom
Thialf:master

Conversation

@Thialf
Copy link
Copy Markdown

@Thialf Thialf commented Dec 30, 2025

The received packets are only verified by the 2 startbytes. This is insufficient. I added checksum and address verification.

The Code at line 615: if ((idx + 9) >= sizeof(packet->data)) { return FINGERPRINT_BADPACKET; }
is done within the switch-default branch.

Setting "fingerID = 0xFFFF;" is unneeded, because it will be set to another value at next command, without any condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant