mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
c6d14ab55f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue