Stream: git-wasmtime

Topic: wasmtime / PR #12537 Handle OOM in `Linker::func_wrap`


view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:26):

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

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:26):

fitzgen requested wasmtime-core-reviewers for a review on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:26):

fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:26):

fitzgen requested alexcrichton for a review on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:26):

fitzgen requested wasmtime-default-reviewers for a review on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 21:35):

fitzgen updated PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 22:49):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 22:49):

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

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 22:49):

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 Result up one more layer

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 22:49):

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 // TODO for now? I don't think we have try_format yet nor try_to_string (or something similarly named) and no need to block this PR on that.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 23:49):

github-actions[bot] added the label wasmtime:api on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 23:49):

github-actions[bot] added the label fuzzing on PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 05 2026 at 23:49):

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:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:43):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:43):

fitzgen created PR review comment:

Our bail!(...) macro will actually handle OOM during formatting, so I tweaked things here such that we never allocate Strings that we will then feed into a bail!(...) format string, and instead just directly reference stuff in the bail!

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:43):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:43):

fitzgen created PR review comment:

Yep, definitely

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:45):

fitzgen updated PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 18:45):

fitzgen has enabled auto merge for PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 19:50):

fitzgen updated PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 19:51):

fitzgen updated PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 20:04):

fitzgen added PR #12537 Handle OOM in Linker::func_wrap to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 20:31):

fitzgen merged PR #12537.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 06 2026 at 20:31):

fitzgen removed PR #12537 Handle OOM in Linker::func_wrap from the merge queue


Last updated: Feb 24 2026 at 04:36 UTC