Skip to content

Commit 3f1fdf6

Browse files
Le Yaoknm3000
Le Yao
authored andcommitted
wamr: update to WAMR-05-18-2022. (proxy-wasm#291)
Signed-off-by: Le Yao <[email protected]>
1 parent 0bc4102 commit 3f1fdf6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bazel/repositories.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def proxy_wasm_cpp_host_repositories():
168168
http_archive,
169169
name = "com_github_bytecodealliance_wasm_micro_runtime",
170170
build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD",
171-
# WAMR-01-18-2022
172-
sha256 = "af88da144bcb5ecac417af7fd34130487f5e4792e79670f07530474b2ef43912",
173-
strip_prefix = "wasm-micro-runtime-d856af6c33591815ab4c890f0606bc99ee8135ad",
174-
url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d856af6c33591815ab4c890f0606bc99ee8135ad.tar.gz",
171+
# WAMR-05-18-2022
172+
sha256 = "350736fffdc49533f5f372221d01e3b570ecd7b85f4429b22f5d89594eb99d9c",
173+
strip_prefix = "wasm-micro-runtime-d7a2888b18c478d87ce8094e1419b4e061db289f",
174+
url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d7a2888b18c478d87ce8094e1419b4e061db289f.tar.gz",
175175
)
176176

177177
native.bind(

src/wamr/wamr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool Wamr::link(std::string_view /*debug_name*/) {
296296
return false;
297297
}
298298

299-
wasm_extern_vec_t imports_vec = {imports.size(), imports.data()};
299+
wasm_extern_vec_t imports_vec = {imports.size(), imports.data(), imports.size()};
300300
instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr);
301301
if (instance_ == nullptr) {
302302
fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance");

0 commit comments

Comments
 (0)