Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate packet CRCs and lengths, and diagnose malformed packets #138

Merged
merged 8 commits into from
Jul 23, 2024

Conversation

martinling
Copy link
Member

Validates packet lengths and CRCs in the decoder, and diagnoses malformed packets in the UI.

As a test case, I have added the HITL test capture from greatscottgadgets/cynthion#139, which is now correctly identified as having CRC failures:

image

This allows us to remove the PID::from_packet() function, and thereby
eliminate any possibility of the "Packet is empty, cannot retrieve PID"
error message.
@martinling martinling merged commit 63b7282 into greatscottgadgets:main Jul 23, 2024
8 checks passed
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.

2 participants