Skip to content

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.

@ghost ghost added the area-System.Numerics label Nov 12, 2024
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.

@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
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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