Skip to content

[SR-6361] Fix Data.withUnsafeMutableBytes() for slices with length < range.lowerBound #12898

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
Nov 15, 2017

Conversation

sashabelonogov
Copy link
Contributor

Update to overlay to match changes done to Data.swift that are approved in PR to swift-corelibs-foundation requested by @phausler:
swiftlang/swift-corelibs-foundation#1314

This PR will fix fatal error: UnsafeMutableRawBufferPointer with negative count when using Data.withUnsafeMutableBytes() for slices with length < range.lowerBound

Resolves SR-6361.

Thank you!

@phausler
Copy link
Contributor

@swift-ci please test and merge

@phausler
Copy link
Contributor

Thank you very much for following up on this!

@sashabelonogov
Copy link
Contributor Author

sashabelonogov commented Nov 14, 2017

@phausler swift-ci was unable to find macOS machine, maybe it's related to the maintenance that happened at 6pm PST, can we try again?

@shahmishal
Copy link
Member

@swift-ci please test

@parkera parkera merged commit b57a9cb into swiftlang:master Nov 15, 2017
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.

4 participants