mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-1949 corrected findBytes bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user