runtime: .NET 7.0 BigInteger.GreatestCommonDivisor bug.

This issue has been moved from a ticket on Developer Community.


The BigInteger.GreatestCommonDivisor() function crashes on some parameters.

Example:

static void test()
{
   var a = new BigInteger(53106192116790780990m);
   var b = new BigInteger(34300000000000000000m);
   var c = BigInteger.GreatestCommonDivisor(a, b);
}

image.png

VS2022 7.2.1; .NET 7.0 Preview’s 1…3


Original Comments

Christian Ohle on 5/22/2022, 05:21 AM:

(private comment, text removed)

Feedback Bot on 5/22/2022, 07:46 PM:

(private comment, text removed)


Original Solutions

(no solutions)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, @sakno! One of the team members from @dotnet/area-system-numerics should review it later this week.

@jeffhandley , PR is ready for review: #71671

@jeffhandley , could you please assign this issue to me? That’s the consequences of my PR.