-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
math/big: panic in big.ParseFloat (off by one access) [1.14 backport] #37501
Labels
Milestone
Comments
gopherbot
added
the
CherryPickCandidate
Used during the release process for point releases
label
Feb 27, 2020
Change https://golang.org/cl/227877 mentions this issue: |
Approved as this is a serious issue with no workaround. |
andybons
added
the
CherryPickApproved
Used during the release process for point releases
label
Apr 27, 2020
gopherbot
removed
the
CherryPickCandidate
Used during the release process for point releases
label
Apr 27, 2020
Closed by merging cd65852 to release-branch.go1.14. |
gopherbot
pushed a commit
that referenced
this issue
Apr 27, 2020
The divBasic function computes the quotient of big nats u/v word by word. It estimates each word qhat by performing a long division (top 2 words of u divided by top word of v), looks at the next word to correct the estimate, then perform a full multiplication (qhat*v) to catch any inaccuracy in the estimate. In the latter case, "negative" values appear temporarily and carries must be carefully managed, and the recursive division refactoring introduced a case where qhat*v has the same length as v, triggering an out-of-bounds write in the case it happens when computing the top word of the quotient. Fixes #37501 Change-Id: I15089da4a4027beda43af497bf6de261eb792f94 Reviewed-on: https://go-review.googlesource.com/c/go/+/221980 Reviewed-by: Robert Griesemer <[email protected]> (cherry picked from commit ac1fd41) Reviewed-on: https://go-review.googlesource.com/c/go/+/227877 Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
@josharian requested issue #37499 to be considered for backport to the next 1.14 minor release.
The text was updated successfully, but these errors were encountered: