mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-18 00:20:10 +00:00
Fix for exception when loading PE's with at least 1 empty section name
Incorporating the section index into the renamed empty section name
This commit is contained in:
parent
4bcce4d23b
commit
be5664a446
@ -655,9 +655,12 @@ public class PeLoader extends AbstractPeDebugLoader {
|
||||
sections[i].getName() + " section");
|
||||
}
|
||||
long offset = sections[i].getPointerToRawData();
|
||||
MemoryBlockUtils.createInitializedBlock(prog, false,
|
||||
sections[i].getReadableName(), address, fileBytes, offset, dataSize, "",
|
||||
"", r, w, x, log);
|
||||
String sectionName = sections[i].getReadableName();
|
||||
if (sectionName.isBlank()) {
|
||||
sectionName = "SECTION." + i;
|
||||
}
|
||||
MemoryBlockUtils.createInitializedBlock(prog, false, sectionName, address,
|
||||
fileBytes, offset, dataSize, "", "", r, w, x, log);
|
||||
sectionToAddress.put(sections[i], address);
|
||||
}
|
||||
if (rawDataSize == virtualSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user