fitzgen opened PR #12855 from fitzgen:handle-oom-when-calling-funcs-and-creating-memories-tables-globals to bytecodealliance:main:
- Use
try_newforBox<dyn RuntimeLinearMemory>inDefaultMemoryCreator- Use
TryPrimaryMapforhost_globalsinStoreAdd
Func::try_wrapand usetry_newforBox<HostFunc>Add
Func::try_wrapas a fallible version ofFunc::wrapthat returns an error
on out-of-memory instead of panicking.Func::wrapnow delegates totry_wrap.Also use
try_new::<Box<_>>instead ofBox::newforHostFunc.Use
bumpalo'stry_allocforFuncRefs- Use
try_newforArc<Module>in "trampoline" code- Test that we handle OOM in
{Func,Memory,Table,Global}::newand when calling an instance's exported function
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12855.
fitzgen requested cfallin for a review on PR #12855.
fitzgen requested wasmtime-core-reviewers for a review on PR #12855.
fitzgen updated PR #12855.
github-actions[bot] added the label fuzzing on PR #12855.
github-actions[bot] added the label wasmtime:api on PR #12855.
github-actions[bot] commented on PR #12855:
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>
cfallin submitted PR review:
Nice!
cfallin added PR #12855 Handle OOM in {Func,Memory,Table,Global}::new and when calling an instance's exported function to the merge queue.
cfallin merged PR #12855.
cfallin removed PR #12855 Handle OOM in {Func,Memory,Table,Global}::new and when calling an instance's exported function from the merge queue.
Last updated: Apr 12 2026 at 23:10 UTC