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

Fix CodeQL issue cpp/enum-index in mono #101751

Merged
merged 1 commit into from May 1, 2024

Conversation

GrabYourPitchforks
Copy link
Member

There's no data flow which would ever allow these values to go negative, so it's not an issue in practice. Still, may as well improve the functions' hygiene. This brings these methods in line with the other mono_arch_fregname and mono_arch_xregname implementations which perform proper bounds checking.

Copy link
Contributor

Tagging subscribers to this area: @lambdageek, @steveisok
See info in area-owners.md if you want to be subscribed.

@lambdageek lambdageek merged commit 08fc3b9 into dotnet:main May 1, 2024
77 of 80 checks passed
michaelgsharp pushed a commit to michaelgsharp/runtime that referenced this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants