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

Avoid sending larger-than-max array lengths over the wire #28

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

tpwrules
Copy link
Contributor

Avoids creating invalid messages, overflowing the array length, and having a length that doesn't match the element count.

Slight downside that the user will have no way to know their messages are invalid (as a larger-than-max length should cause the receive side to reject the message assuming it does not overflow).

Avoids creating invalid messages, overflowing the array length, and
having a length that doesn't match the element count.

Slight downside that the user will have no way to know their messages
are invalid (as a larger-than-max length should cause the receive side
to reject the message assuming it does not overflow).
@tpwrules
Copy link
Contributor Author

Tested that this branch works well with the quadplane-can simulated vehicle on ArduPilot master (2f0f7aa6). It flies and all the sensors work properly.

@tridge tridge merged commit 0c23cb5 into dronecan:master Jul 20, 2024
3 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