Ghidra is a software reverse engineering (SRE) framework
GP-1949 corrected findBytes bug
ghidra1afb63d811c2e
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.javaindex d261ed6924..9d67bfe76c 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java@@ -1221,7 +1221,7 @@ public class MemoryMapDB implements Memory, ManagerDB, LiveMemoryListener {if (monitor == null) {monitor = TaskMonitor.DUMMY;}- AddressSetView set = getLoadedAndInitializedAddressSet();+ AddressSetView set = getAllInitializedAddressSet();AddressIterator it = set.getAddresses(startAddr, forward);byte[] b = new byte[bytes.length];if (forward) {diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/Memory.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/Memory.javaindex d483e78266..9085883e4e 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/Memory.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/Memory.java@@ -433,7 +433,6 @@ public interface Memory extends AddressSetView {* Finds a sequence of contiguous bytes that match the* given byte array at all bit positions where the mask contains an "on" bit.* Starts at startAddr and ends at endAddr.- * Search is performed over loaded memory only.* If forward is true, search starts at startAddr and will end if startAddr ">" endAddr.* If forward is false, search starts at start addr and will end if startAddr "<" endAddr.*