Skip to content

Commit 0795a6e

Browse files
committed
Merge remote-tracking branch 'origin/patch'
2 parents c5594d2 + 23fe661 commit 0795a6e

File tree

1 file changed

+1
-1
lines changed
  • Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion

1 file changed

+1
-1
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/PeLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ private Map<SectionHeader, Address> processMemoryBlocks(PortableExecutable pe, P
612612
}
613613

614614
// Header block
615-
int virtualSize = getVirtualSize(pe, sections, space);
615+
int virtualSize = (int) Math.min(getVirtualSize(pe, sections, space), fileBytes.getSize());
616616
long addr = optionalHeader.getImageBase();
617617
Address address = space.getAddress(addr);
618618

0 commit comments

Comments
 (0)