fitzgen opened PR #12537 from fitzgen:handle-oom-in-linker-func-wrap to bytecodealliance:main:
Part of https://github.com/bytecodealliance/wasmtime/issues/12069
Depends on
fitzgen requested wasmtime-core-reviewers for a review on PR #12537.
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12537.
fitzgen requested alexcrichton for a review on PR #12537.
fitzgen requested wasmtime-default-reviewers for a review on PR #12537.
fitzgen updated PR #12537.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
We should keep an eye on the amount of times this is hand-written -- it may end up being the case that it'd be best to write a
#[derive]for this
alexcrichton created PR review comment:
This'll need replicating below as well, at which point it might make sense to go ahead and propagate the
Resultup one more layer
alexcrichton created PR review comment:
This is sort of tricky b/c we don't handle OOM failures here and it's non-obvious to test as well.
Perhaps just a
// TODOfor now? I don't think we havetry_formatyet nortry_to_string(or something similarly named) and no need to block this PR on that.
github-actions[bot] added the label wasmtime:api on PR #12537.
github-actions[bot] added the label fuzzing on PR #12537.
github-actions[bot] commented on PR #12537:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- fitzgen: fuzzing
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen submitted PR review.
fitzgen created PR review comment:
Our
bail!(...)macro will actually handle OOM during formatting, so I tweaked things here such that we never allocateStrings that we will then feed into abail!(...)format string, and instead just directly reference stuff in thebail!
fitzgen submitted PR review.
fitzgen created PR review comment:
Yep, definitely
fitzgen updated PR #12537.
fitzgen has enabled auto merge for PR #12537.
fitzgen updated PR #12537.
fitzgen updated PR #12537.
fitzgen added PR #12537 Handle OOM in Linker::func_wrap to the merge queue
fitzgen merged PR #12537.
fitzgen removed PR #12537 Handle OOM in Linker::func_wrap from the merge queue
Last updated: Feb 24 2026 at 04:36 UTC