Skip to content

[Foundation] slices of slices that use range expressions incorrectly calculated relative indexing #10584

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
Jun 26, 2017

Conversation

phausler
Copy link
Contributor

@phausler phausler commented Jun 26, 2017

The RangeExpression variants of slicing incorrectly passed 0..<R.Bounds.max which should be the slice region of the Data.

This resolves the issues:
rdar://problem/32982494
rdar://problem/32983214 aka [SR-5292]: Another Data slice-related crash

@phausler
Copy link
Contributor Author

@swift-ci please test and merge

@phausler phausler force-pushed the slice_range_expressions branch from b3afbaa to 9648228 Compare June 26, 2017 21:49
@phausler
Copy link
Contributor Author

@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

1 participant