Skip to content

Commit

Permalink
Fix mapping when imageBase is greater than bin->size PE
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe committed May 15, 2017
1 parent 8bb1b96 commit c80221d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/bin/format/pe/pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c80221d

Please sign in to comment.