Skip to content

[5.7][stdlib] Prevent preventable buffer overflows when constructing Strings from C strings. #42304

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 16 commits into from
Apr 27, 2022

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Apr 11, 2022

Cherry-pick of #42002, resolving rdar://90336023
Also includes #42232, which works around https://bugs.swift.org/browse/SR-16103.

An earlier version of this was merged in #42221, reverted in #42266.

@glessard glessard requested a review from a team as a code owner April 11, 2022 18:24
@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard changed the title [stdlib] prevent preventable buffer overflows when constructing Strings from C strings. [stdlib] Prevent preventable buffer overflows when constructing Strings from C strings. Apr 11, 2022
@glessard
Copy link
Contributor Author

@swift-ci please test source compatibility

@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard
Copy link
Contributor Author

Force-pushed to fix a bad automatic merge.

@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard changed the title [stdlib] Prevent preventable buffer overflows when constructing Strings from C strings. [5.7][stdlib] Prevent preventable buffer overflows when constructing Strings from C strings. Apr 22, 2022
@glessard glessard merged commit 3e8d153 into swiftlang:release/5.7 Apr 27, 2022
@glessard glessard deleted the rdar90336023-5.7 branch April 27, 2022 19:07
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