alexcrichton opened PR #12869 from alexcrichton:panic-max-wasm-stack to bytecodealliance:main:
This commit fixes a panic through a
checked_add(...).unwrap()which can happen whenConfig::max_wasm_stackis configured to be a very large value. This is a mostly benign panic as it's unlikely this is configured much in the wild, but nevertheless seems like a good issues to fix regardless.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-core-reviewers for a review on PR #12869.
alexcrichton requested dicej for a review on PR #12869.
github-actions[bot] added the label wasmtime:api on PR #12869.
dicej submitted PR review.
alexcrichton added PR #12869 Fix a panic with a massive max_wasm_stack configured to the merge queue.
github-merge-queue[bot] removed PR #12869 Fix a panic with a massive max_wasm_stack configured from the merge queue.
alexcrichton updated PR #12869.
alexcrichton requested wasmtime-default-reviewers for a review on PR #12869.
alexcrichton requested fitzgen for a review on PR #12869.
alexcrichton updated PR #12869.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12869.
alexcrichton updated PR #12869.
alexcrichton updated PR #12869.
alexcrichton has enabled auto merge for PR #12869.
alexcrichton has disabled auto merge for PR #12869.
alexcrichton has enabled auto merge for PR #12869.
alexcrichton added PR #12869 Fix a panic with a massive max_wasm_stack configured to the merge queue.
github-actions[bot] added the label pulley on PR #12869.
github-actions[bot] added the label cranelift on PR #12869.
github-actions[bot] commented on PR #12869:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "pulley", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- fitzgen: pulley
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton merged PR #12869.
alexcrichton removed PR #12869 Fix a panic with a massive max_wasm_stack configured from the merge queue.
Last updated: Apr 12 2026 at 23:10 UTC