Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2019-11-21 11:44:06 -05:00
commit 0795a6e808

View File

@ -612,7 +612,7 @@ public class PeLoader extends AbstractPeDebugLoader {
}
// Header block
int virtualSize = getVirtualSize(pe, sections, space);
int virtualSize = (int) Math.min(getVirtualSize(pe, sections, space), fileBytes.getSize());
long addr = optionalHeader.getImageBase();
Address address = space.getAddress(addr);