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

Bounds correctness for AnalogIn_IIO #25747

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Bounds correctness for AnalogIn_IIO #25747

merged 1 commit into from
Apr 15, 2024

Conversation

landswellsong
Copy link
Contributor

Make sure that we don't read out of the fd array as well as that the fd array and the filenames array have the same lengths.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM.

I can't see any coupling between the parameter being passed in to the channel method and the length of these arrays, so some sanity checking must be in order.

Linux HAL, so need @lucasdemarchi to say yes.

@tridge tridge merged commit cadd121 into ArduPilot:master Apr 15, 2024
60 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.

4 participants