mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/GP-4260_ryanmkurtz_mz'
(Closes #6029)
This commit is contained in:
commit
0aa317ff54
1 changed files with 5 additions and 0 deletions
|
@ -188,6 +188,11 @@ public class MzLoader extends AbstractLibrarySupportLoader {
|
|||
}
|
||||
// Allocate an initialized memory block for each segment we know about
|
||||
int endOffset = pagesToBytes(header.e_cp() - 1) + header.e_cblp();
|
||||
if (endOffset > reader.length()) {
|
||||
log.appendMsg(
|
||||
"File is 0x%x bytes but header reports 0x%x".formatted(reader.length(), endOffset));
|
||||
endOffset = (int) reader.length();
|
||||
}
|
||||
MemoryBlock lastBlock = null;
|
||||
List<SegmentedAddress> orderedSegments = new ArrayList<>(knownSegments);
|
||||
for (int i = 0; i < orderedSegments.size(); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue