Add function loading validity checks

This commit is contained in:
Rerumu
2022-08-22 14:10:37 -04:00
parent 2c913e86ed
commit 0a9f9fd6ad
3 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ fn build_func_list(wasm: &Module, type_info: &TypeInfo) -> Vec<FuncData> {
wasm.code_section()
.iter()
.enumerate()
.map(|f| builder.create_indexed(f.0 + offset, f.1))
.map(|f| builder.create_indexed(f.0 + offset, f.1).unwrap())
.collect()
}
+1 -1
View File
@@ -211,7 +211,7 @@ fn build_func_list(wasm: &Module, type_info: &TypeInfo) -> Vec<FuncData> {
wasm.code_section()
.iter()
.enumerate()
.map(|f| builder.create_indexed(f.0 + offset, f.1))
.map(|f| builder.create_indexed(f.0 + offset, f.1).unwrap())
.collect()
}