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

AP_Airspeed: healthy: check enabled first for instance range check #28051

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Sep 9, 2024

By checking enabled first we can be sure that i is a valid instance and don't try and read past the end of the arrays. This is needed if we add a scripting binding without a hard coded range check. #28044

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.

LGTM

@peterbarker
Copy link
Contributor

What testing has this had?

@IamPete1
Copy link
Member Author

IamPete1 commented Sep 9, 2024

What testing has this had?

Only here in CI.

@peterbarker peterbarker merged commit b1fe1f1 into ArduPilot:master Sep 9, 2024
94 checks passed
@peterbarker
Copy link
Contributor

Merged, thanks!

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