-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix out-of-bounds when providing fixits for the @available attribute. #64734
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 out-of-bounds when providing fixits for the @available attribute. #64734
Conversation
Please add a test case for this that triggered the failure case. |
@swift-ci please test |
@swift-ci please test macOS platform |
My bad, pushed a fix |
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @tshortli could you take a look as well please?
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fix!
@swift-ci please clean test macOS platform |
Fixes an out-of-bounds iterator access when providing fixits for the @available attribute.
None of the code paths in
updateLabelsForArg
should execute once we've reached the end of theargumentLabelIDs
vector, but not all cases tested for this.Fixes #64694