Skip to content

[Runtime] Fix UB in layout string runtime functions #66112

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
May 25, 2023

Conversation

drexin
Copy link
Contributor

@drexin drexin commented May 24, 2023

rdar://109790722

Layout strings are not guaranteed to be properly aligned, so we can't directly read from and write to it, but have to use memcpy instead.

rdar://109790722

Layout strings are not guaranteed to be properly aligned, so we can't directly read from and write to it, but have to use memcpy instead.
@drexin
Copy link
Contributor Author

drexin commented May 24, 2023

@swift-ci smoke test

@drexin drexin merged commit ca004c2 into swiftlang:main May 25, 2023
@drexin drexin deleted the wip-109790722 branch May 25, 2023 15:35
drexin added a commit to drexin/swift that referenced this pull request May 25, 2023
rdar://109790722

Layout strings are not guaranteed to be properly aligned, so we can't directly read from and write to it, but have to use memcpy instead.
drexin added a commit that referenced this pull request May 26, 2023
rdar://109790722

Layout strings are not guaranteed to be properly aligned, so we can't directly read from and write to it, but have to use memcpy instead.
NuriAmari pushed a commit to NuriAmari/swift that referenced this pull request May 28, 2023
rdar://109790722

Layout strings are not guaranteed to be properly aligned, so we can't directly read from and write to it, but have to use memcpy instead.
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