[SR-10079] Iterating over a reversed substring can crash #52481
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
standard library
Area: Standard library umbrella
Environment
Tested with Xcode 10.1 (Swift 4.2) and Xcode 10.2 beta 3 (Swift 5).
Additional Detail from JIRA
md5: 9ba13aeb1c246a44632281938881173b
Issue Description:
Iterating over a
ReversedCollection<String.SubSequence>
can crash if the substring starts within an extended grapheme cluster:The same crash happens with any of the following:
The text was updated successfully, but these errors were encountered: