diff options
| -rw-r--r-- | miasm2/arch/x86/arch.py | 4 | ||||
| -rw-r--r-- | miasm2/core/cpu.py | 2 | ||||
| -rw-r--r-- | miasm2/jitter/loader/pe.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index 8f9a1f79..b1d671d1 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -954,8 +954,8 @@ class mn_x86(cls_mn): for c, v in candidates: if v_opmode(c) != instr.mode: cand_diff_mode += v - cand_same_mode.sort(key=lambda x: len(x)) - cand_diff_mode.sort(key=lambda x: len(x)) + cand_same_mode.sort(key=len) + cand_diff_mode.sort(key=len) return cand_same_mode + cand_diff_mode diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index f4c627f4..85a6db75 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -1514,7 +1514,7 @@ class cls_mn(object): o = [] for c, v in candidates: o += v - o.sort(key=lambda x: len(x)) + o.sort(key=len) return o def value(self, mode): diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py index 0b63583d..f7e93c52 100644 --- a/miasm2/jitter/loader/pe.py +++ b/miasm2/jitter/loader/pe.py @@ -266,7 +266,7 @@ def vm2pe(myjit, fname, libs=None, e_orig=None, libbase, dllname = libs.fad2info[funcaddr] libs.lib_get_add_func(libbase, dllname, addr) - new_dll = libs.gen_new_lib(mye, lambda x: mye.virt.is_addr_in(x)) + new_dll = libs.gen_new_lib(mye, mye.virt.is_addr_in) else: new_dll = {} |