Skip to content

[6.0] Resolved an arithmetic overflow error in Decimal division caused by improper upcasting (#850) #864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

iCharlesHu
Copy link
Contributor

Explanation: resolves an arithmetic overflow error in Decimal division that can lead to crash with specific inputs.
Scope: Only impact Decimal division
Original PR: #850
Risk: Minimal - scope is very small (one line)
Testing: Testing done via swift-ci testing and local testing
Reviewer: @jmschonfeld

…d by improper upcasting (swiftlang#850)

- Upcast numbers to higher bitwidth before performing calculations.

resolves: rdar://133458109
resolves: swiftlang#595
@iCharlesHu iCharlesHu requested a review from itingliu August 16, 2024 16:26
@iCharlesHu iCharlesHu marked this pull request as ready for review August 16, 2024 18:51
@iCharlesHu
Copy link
Contributor Author

@swift-ci please test

@iCharlesHu iCharlesHu merged commit 0560549 into swiftlang:release/6.0 Aug 17, 2024
3 checks passed
@iCharlesHu iCharlesHu deleted the charles/decimal-division-fix-swift-6 branch August 17, 2024 04:37
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