Skip to content
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

SR-10240: Dont try to write an empty Data() if it has a nil baseAddress. #2053

Merged
merged 1 commit into from Apr 8, 2019

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Apr 1, 2019

This doesnt actually crash in master as the region passed has a non-nil baseAddress and bytes.count = 0, but eliminate the force unwrap anyway incase the baseAddress ever becomes nil in the future.

@spevans
Copy link
Collaborator Author

spevans commented Apr 1, 2019

@swift-ci test

@millenomi
Copy link
Contributor

@swift-ci please test and merge

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.

None yet

3 participants