From 84676f395f8f6387322e5eeb5a9a09120f8b3d8d Mon Sep 17 00:00:00 2001 From: yoloyyh <1764163852@qq.com> Date: Wed, 6 Nov 2024 19:54:04 +0800 Subject: [PATCH] fix mmap twice --- rasp/librasp/src/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasp/librasp/src/runtime.rs b/rasp/librasp/src/runtime.rs index a0b813fcf..e42261746 100644 --- a/rasp/librasp/src/runtime.rs +++ b/rasp/librasp/src/runtime.rs @@ -215,7 +215,7 @@ pub trait RuntimeInspect { match golang_bin_inspect(&path, &elf) { Ok(res) => { if res > 0 { - let version = match golang_version(&file, &elf) { + let version = match golang_version(&file, &elf, &bin) { Ok(v) => { v }