Skip to content

extra: handle an edge case in BigUint.to_str(). #10523

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

Closed
wants to merge 1 commit into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Nov 16, 2013

If any of the digits was one past the maximum (e.g. 10**9 for base 10),
then this wasn't detected correctly and so the length of the digit was
one more than expected, causing a very large allocation.

Fixes #10522.
Fixes #10288.

If any of the digits was one past the maximum (e.g. 10**9 for base 10),
then this wasn't detected correctly and so the length of the digit was
one more than expected, causing a very large allocation.

Fixes rust-lang#10522.
Fixes rust-lang#10288.
bors added a commit that referenced this pull request Nov 17, 2013
If any of the digits was one past the maximum (e.g. 10**9 for base 10),
then this wasn't detected correctly and so the length of the digit was
one more than expected, causing a very large allocation.

Fixes #10522.
Fixes #10288.
@bors bors closed this Nov 17, 2013
@huonw huonw deleted the 10522 branch November 25, 2013 10:56
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 24, 2023
Do not propose to simplify a not expression coming from a macro

Fixes rust-lang#10523

changelog: FP [`nonminimal_bool`]: do not propose to change code coming from a macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extra::bigint does not handle overflow correctly bigint add function cause Segmentation fault
2 participants