Skip to content

[Attr] Refactor retrieving original attributes #64701

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

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

bnbarham
Copy link
Contributor

decl->getOriginalAttrs()->getAttributes<...> isn't safe in the current API. Update OrigDeclAttributes to filter its attributes to the original ones on demand, rather than filtering and storing a vector inline.

Resolves rdar://107342658.

`decl->getOriginalAttrs()->getAttributes<...>` isn't safe in the current
API. Update `OrigDeclAttributes` to filter its attributes to the
original ones on demand, rather than filtering and storing a vector
inline.

Resolves rdar://107342658.
@bnbarham bnbarham requested a review from rintaro March 29, 2023 00:07
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

preset=asan
@swift-ci please test with preset macOS platform

@rintaro rintaro merged commit e4e5af9 into swiftlang:main Mar 29, 2023
@bnbarham bnbarham deleted the fix-stack-uaf branch March 29, 2023 16:17
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