From c80221d0c9ae64d0898a7eef76a81037f5f5d865 Mon Sep 17 00:00:00 2001 From: alvarofe Date: Mon, 15 May 2017 10:25:09 +0200 Subject: [PATCH] Fix mapping when imageBase is greater than bin->size PE --- libr/bin/format/pe/pe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libr/bin/format/pe/pe.c b/libr/bin/format/pe/pe.c index aca89a314965e..18854c75550d7 100644 --- a/libr/bin/format/pe/pe.c +++ b/libr/bin/format/pe/pe.c @@ -329,6 +329,9 @@ ut64 PE_(r_bin_pe_get_image_base)(struct PE_(r_bin_pe_obj_t)* bin) { //but from here we can not access config API imageBase = 0x10000; } + if (imageBase < bin->size) { + imageBase = 0x8000000; + } return imageBase; }