mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-17 19:01:20 +00:00
Fix execute after free issue with llvm (and presumably cranelift?)
This commit is contained in:
@ -278,7 +278,7 @@ impl LLVMBackend {
|
||||
info: &ModuleInfo,
|
||||
local_func_index: LocalFuncIndex,
|
||||
) -> Option<NonNull<vm::Func>> {
|
||||
let index = local_func_index.index();
|
||||
let index = info.imported_functions.len() + local_func_index.index();
|
||||
let name = if cfg!(target_os = "macos") {
|
||||
format!("_fn{}", index)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user