Skip to content

IRGen: Fix a use-after-free error in ShadowStackSlots creation #62422

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

Conversation

aschwaighofer
Copy link
Contributor

The ShadowStackSlots map uses a StringRef to the SmallString<4> entry in the AnonymousVariables map. When AnonymousVariables is resized the pointer to the inline string entry will no longer be valid.

No reproducer.

rdar://102982240

The `ShadowStackSlots` map uses a `StringRef` to the `SmallString<4>` entry in
the `AnonymousVariables` map. When `AnonymousVariables` is resized the pointer
to the inline string entry will no longer be valid.

No reproducer.

rdar://102982240
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@nate-chandler nate-chandler merged commit 98dc1d5 into swiftlang:main Dec 7, 2022
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.

3 participants