mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Adding bounds check in a.subscript(Index) fast path
UnsafeBufferPoiunter subscript used in the fast path only checks bounds in Debug mode, therefore extra checks are needed. Addresses: <rdar://problem/31992473>
This commit is contained in:
committed by
Maxim Moiseev
parent
5baa080edb
commit
178b9f0b44
@@ -192,9 +192,7 @@ StringTests.test("ForeignIndexes/UnexpectedCrash")
|
||||
expectEqual("a", acceptor[donor.startIndex])
|
||||
}
|
||||
|
||||
StringTests.test("ForeignIndexes/subscript(Index)/OutOfBoundsTrap")
|
||||
.skip(.always("<rdar://problem/31992473>"))
|
||||
.code {
|
||||
StringTests.test("ForeignIndexes/subscript(Index)/OutOfBoundsTrap") {
|
||||
let donor = "abcdef"
|
||||
let acceptor = "uvw"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user