mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2948: PeLoader uninitialized padding block start addresses no longer
overwrite true section start address (Closes #4815)
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
package ghidra.app.util.opinion;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigInteger;
|
||||
import java.util.*;
|
||||
|
||||
import ghidra.app.util.MemoryBlockUtils;
|
||||
@@ -36,8 +35,6 @@ import ghidra.program.database.function.OverlappingFunctionException;
|
||||
import ghidra.program.database.mem.FileBytes;
|
||||
import ghidra.program.model.address.*;
|
||||
import ghidra.program.model.data.*;
|
||||
import ghidra.program.model.lang.Register;
|
||||
import ghidra.program.model.lang.RegisterValue;
|
||||
import ghidra.program.model.listing.*;
|
||||
import ghidra.program.model.mem.Memory;
|
||||
import ghidra.program.model.mem.MemoryAccessException;
|
||||
@@ -742,7 +739,7 @@ public class PeLoader extends AbstractPeDebugLoader {
|
||||
if (dataSize > 0) {
|
||||
MemoryBlockUtils.createUninitializedBlock(prog, false,
|
||||
sections[i].getReadableName(), address, dataSize, "", "", r, w, x, log);
|
||||
sectionToAddress.put(sections[i], address);
|
||||
sectionToAddress.putIfAbsent(sections[i], address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user