Skip to content
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

[release/9.0-staging] Add a missing = in BigInteger.cs #109732

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 12, 2024

Backport of #105456 to release/9.0-staging

/cc @tannergooding @LEI-Hongfaan

Customer Impact

  • Customer reported
  • Found internally

Reported by a customer in #109669. BigInteger may compute an incorrect result when the value produced is a value of the form -(2^(32 * n)) where n >= 1. This is primarily prevalent to bitwise operations such as & (and), | (or), and ^ (xor).

Regression

  • Yes
  • No

This is a regression from .NET 8.

Testing

Additional tests covering the edge case were added. The failure was due to a comparison doing > (greater than) rather than >= (greater than or equal to) as the equals sign was accidentally dropped in a refactoring.

Risk

Low.

This fix is itself low risk, resolves the issue, and is understood why it is the correct solution.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

@tannergooding tannergooding added the Servicing-consider Issue for next servicing release review label Nov 12, 2024
@tannergooding
Copy link
Member

CC. @jeffhandley

@tannergooding
Copy link
Member

Added the additional regression test from the other community PR.

Co-authored-by: Tanner Gooding <tagoo@outlook.com>
@jeffhandley
Copy link
Member

Tagging @artl93 for awareness

@jeffhandley jeffhandley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 25, 2024
@jeffhandley jeffhandley merged commit ab50806 into release/9.0-staging Nov 25, 2024
85 of 87 checks passed
@jeffhandley jeffhandley deleted the backport/pr-105456-to-release/9.0-staging branch November 25, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Numerics Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants