Skip to content
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

Fix overflow ICE in large_stack/const_arrays #10103

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

Niki4tap
Copy link
Contributor

@Niki4tap Niki4tap commented Dec 19, 2022

Change maximum_allowed_size config variable type from u64 to u128, and converting total array sizes to u128 to avoid overflow during multiplication.

Fixes #10044

changelog: Fix: [large_const_arrays] and [large_stack_arrays]: avoid integer overflow when calculating total array size
#10103

@rustbot
Copy link
Collaborator

rustbot commented Dec 19, 2022

r? @flip1995

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 19, 2022
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Dec 19, 2022

📌 Commit d0ac6ba has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 19, 2022

⌛ Testing commit d0ac6ba with merge 09cfcaf...

@bors
Copy link
Collaborator

bors commented Dec 19, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 09cfcaf to master...

@bors bors merged commit 09cfcaf into rust-lang:master Dec 19, 2022
@Niki4tap Niki4tap deleted the overflow_ice branch December 19, 2022 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"attempt to multiply with overflow" with debug assertions and overflow checks
4 participants