Skip to content

[stdlib] adjust assertion levels in UnsafeBufferPointer.extracting() - #91514

Open
glessard wants to merge 3 commits into
swiftlang:mainfrom
glessard:rdar184868565-always-crashing-in-the-same-bounds
Open

[stdlib] adjust assertion levels in UnsafeBufferPointer.extracting()#91514
glessard wants to merge 3 commits into
swiftlang:mainfrom
glessard:rdar184868565-always-crashing-in-the-same-bounds

Conversation

@glessard

Copy link
Copy Markdown
Contributor

Weaken the bounds checks from _precondition to _debugPrecondition.
Add an _internalInvariant in the unchecked: variants.

Addresses: rdar://184868565

Weaken the bounds checks from _precondition to _debugPrecondition.
@glessard
glessard requested a review from a team as a code owner August 15, 2026 05:47
@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@stephentyrone
stephentyrone requested a review from lorentey August 15, 2026 12:17
@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows platform

@glessard

Copy link
Copy Markdown
Contributor Author

swiftlang/swift-testing#1835
@swift-ci build toolchain Linux platform

@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test macOS arm64

@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows platform

@glessard

Copy link
Copy Markdown
Contributor Author

swiftlang/swift-testing#1835
@swift-ci build toolchain ubuntu 24.04

@glessard

Copy link
Copy Markdown
Contributor Author

Waiting for #91539 to merge a fix for the macOS-arm64 test failure.

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.

2 participants