-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
FoundationStringArea β standard library: The `String` typeArea β standard library: The `String` typebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwarerun-time crashBug β crash: Swift code crashed during executionBug β crash: Swift code crashed during executionstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.7
Description
Description
Appending two emoji strings together crashes on macOS Ventura
Steps to reproduce
- Use macOS Ventura
- Run the sample package's tests or
- try to execute the code
"β".appending("π¦")
in the Swift repl
Expected behavior
This code should run and execute fine producing a string that is equal to "βπ¦"
Actual behavior
This works correctly on macOS Monterey, but crashes on macOS Ventura with the message Swift/StringUTF16View.swift:144: Fatal error: String index is out of bounds
Environment
- Swift compiler version info
-- swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
-- Target: arm64-apple-macosx13.0 - Xcode version info
-- Xcode 14.2
-- Build version 14C18 - Deployment target: macOS 11
Sample Project
FuzzyMatchingPackage.zip
Metadata
Metadata
Assignees
Labels
FoundationStringArea β standard library: The `String` typeArea β standard library: The `String` typebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwarerun-time crashBug β crash: Swift code crashed during executionBug β crash: Swift code crashed during executionstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.7