Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #33 from comex/end-address-fix
Browse files Browse the repository at this point in the history
Skip dump indices which lie entirely before the requested search range.
  • Loading branch information
mdbell authored Jan 17, 2020
2 parents 39df525 + 02e7f86 commit 8e8a75d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ private void fullSearch() throws Exception {
long size = res.curr.getSize();
long start = supplier.getStart();
for (DumpIndex idx : indices) {
if (isCancelled() || idx.getAddress() >= supplier.getEnd()) {
break;
if (isCancelled() ||
idx.getAddress() >= supplier.getEnd() ||
idx.getEndAddress() <= start) {
continue;
}
updateMessage("Searching...");
ByteBuffer b = res.curr.getBuffer(idx);
Expand Down

0 comments on commit 8e8a75d

Please sign in to comment.