-
Notifications
You must be signed in to change notification settings - Fork 49
Crash in BidirectionalCollection.firstRange(of:)
#666
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
Comments
I believe that this is fixed in 5.8 and main with #631. Note that this is a runtime fix, so testing with the Xcode beta on a version of macOS with the 5.7 runtime is expected not to work. |
@natecook1000 Could you transfer this issue to the string processing repo? |
Given that it’s already fixed, are we cloning it just to close immediately, or is there a further problem to address? |
No, just seeing to it that issues end up in the right repos, even if they happen to be fixed by the time they do. It’s fine to close prior to transferring. |
@natecook1000 ping |
Steve's right, this was addressed by #631. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Description
BidirectionalCollection.firstRange(of:)
crashes when the last element of the needle matches the last element of the haystack, but other elements do not match.Steps to reproduce
Expected behavior
The above examples should not crash, but should instead return nil
Environment
Also seems to happen in Swift 5.8 (in the Xcode beta)
The text was updated successfully, but these errors were encountered: