Skip to content

Conversation

eeckstein
Copy link
Contributor

  • Fix the right shift operator which didn't work if the number of bits is exactly 64
  • Detect overflow when combining indices

Such large indices usually don't appear in real code, except in internal String operations where (potentially large) integer values are treated as pointers.

Fixes a compiler crash
#84372
rdar://160863199

* Fix the right shift operator which didn't work if the number of bits is exactly 64
* Detect overflow when combining indices

Such large indices usually don't appear in real code, except in internal String operations where (potentially large) integer values are treated as pointers.

Fixes a compiler crash
swiftlang#84372
rdar://160863199
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very tricky bug considering numBits was validated earlier.

@eeckstein eeckstein merged commit 6557efc into swiftlang:main Sep 23, 2025
3 checks passed
@eeckstein eeckstein deleted the fix-smallprojectionpath branch September 23, 2025 05:13
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