mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-24 21:21:56 +00:00
Merge remote-tracking branch 'origin/GT-3357' into patch
This commit is contained in:
commit
e818ddc0e5
@ -81,7 +81,11 @@ public class AddressRangeChunker implements Iterable<AddressRange> {
|
||||
}
|
||||
|
||||
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 currentEnd = nextStartAddress.add(size - 1); // -1 since inclusive
|
||||
|
Loading…
Reference in New Issue
Block a user