From a2637cdf0b40df074865d23a7fd71f082ad7f40a Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 11 Dec 2017 14:26:23 +0100 Subject: Expr: Add new word ExprLoc This word represents a location in the binary. Thus, the hack of ExprId containing an AsmLabel ends here. --- miasm2/jitter/loader/pe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'miasm2/jitter/loader/pe.py') diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py index 2fe4cd3f..ea6c2c98 100644 --- a/miasm2/jitter/loader/pe.py +++ b/miasm2/jitter/loader/pe.py @@ -162,8 +162,7 @@ def vm_load_pe(vm, fdata, align_s=True, load_hdr=True, name="", **kargs): new_size = pe.SHList[i + 1].addr - section.addr section.size = new_size section.rawsize = new_size - section.data = strpatchwork.StrPatchwork( - section.data[:new_size]) + section.data = section.data[:new_size] section.offset = section.addr # Last section alignement -- cgit 1.4.1