Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ rustix = { version = "0.35.6", features = ["mm", "param"] }
# depend again on wasmtime to activate its default features for tests
wasmtime = { path = "crates/wasmtime", version = "0.40.0", features = ['component-model'] }
env_logger = "0.9.0"
log = "0.4.8"
filecheck = "0.5.0"
tempfile = "3.1.0"
test-programs = { path = "crates/test-programs" }
Expand Down
12 changes: 12 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
--------------------------------------------------------------------------------

## 0.40.1

Released 2022-08-31.

### Fixed

* Fixed a potential panic when capturing a Wasm stack trace if there were
multiple Wasm activations on the stack from two different
stores. [#4779](https://github.com/bytecodealliance/wasmtime/pull/4779/)

--------------------------------------------------------------------------------

## 0.40.0

Released 2022-08-20.
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl TableElement {
/// The same warnings as for `into_table_values()` apply.
pub(crate) unsafe fn into_ref_asserting_initialized(self) -> usize {
match self {
Self::FuncRef(e) => (e as usize),
Self::FuncRef(e) => e as usize,
Self::ExternRef(e) => e.map_or(0, |e| e.into_raw() as usize),
Self::UninitFunc => panic!("Uninitialized table element value outside of table slot"),
}
Expand Down
Loading