mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-03 00:46:59 +08:00
Merge remote-tracking branch 'origin/GT-3357' into patch
This commit is contained in:
+5
-1
@@ -81,7 +81,11 @@ public class AddressRangeChunker implements Iterable<AddressRange> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
long available = end.subtract(nextStartAddress) + 1; // +1 to be inclusive
|
long available = end.subtract(nextStartAddress) + 1; // +1 to be inclusive
|
||||||
int size = Math.min(chunkSize, (int) available);
|
|
||||||
|
int size = chunkSize;
|
||||||
|
if (available >= 0 && available < chunkSize) {
|
||||||
|
size = (int) available;
|
||||||
|
}
|
||||||
|
|
||||||
Address currentStart = nextStartAddress;
|
Address currentStart = nextStartAddress;
|
||||||
Address currentEnd = nextStartAddress.add(size - 1); // -1 since inclusive
|
Address currentEnd = nextStartAddress.add(size - 1); // -1 since inclusive
|
||||||
|
|||||||
Reference in New Issue
Block a user