Skip to content

math/big: nat.mulRange produces incorrect results for large input arguments #65025

@griesemer

Description

@griesemer

Go version

go version devel go1.22-8eaa7935db Mon Jan 8 18:52:56 2024 +0000 darwin/amd64

Output of go env in your module/workspace:

irrelevant

What did you do?

mulRange(math.MaxUint64 - 3, math.MaxUint64) overflows the internal median computation
(reported by jannotti@gmail.com)

What did you see happen?

incorrect result / stack overflow

What did you expect to see?

correct result

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions