Skip to content

Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs#12858

Open
fitzgen wants to merge 2 commits intobytecodealliance:mainfrom
fitzgen:more-oom-handling
Open

Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs#12858
fitzgen wants to merge 2 commits intobytecodealliance:mainfrom
fitzgen:more-oom-handling

Conversation

@fitzgen
Copy link
Copy Markdown
Member

@fitzgen fitzgen commented Mar 27, 2026

See commits for details.

@fitzgen fitzgen requested review from a team as code owners March 27, 2026 19:26
@fitzgen fitzgen requested review from dicej and removed request for a team March 27, 2026 19:26
fitzgen added 2 commits March 27, 2026 12:38
A bunch of random places:

* Add: `Trap::try_new` to handle OOM while creating traps
* Use: `TryVec` inside `Func::call_impl_do_call` and `wasm_val_raw_storage` to
  hold the args and rets
* Add: `Instance::try_exports` for iterating over an instance's exports while
  handling OOM
* `Linker:try_get`, like `Linker::get` but handling OOM
* `Linker:try_get_by_import`, like `Linker::get_by_import` but handling OOM
* Use `try_new` to box things in `SharedMemory::new`
* Use `TryVec` instead of `Vec` in our dynamic tables
Excludes component-, async-, and compilation-related APIs.
@fitzgen fitzgen force-pushed the more-oom-handling branch from 0400f76 to 883e360 Compare March 27, 2026 19:39
@github-actions github-actions bot added fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself labels Mar 27, 2026
@github-actions
Copy link
Copy Markdown

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 .github/subscribe-to-label.json configuration file.

Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant