mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
Merge remote-tracking branch 'origin/GT-2699-Ghidravore-stack_trace_when_deleting_mem_section'
This commit is contained in:
commit
2e90cffaa6
@ -491,11 +491,12 @@ public class ListingModelAdapter implements LayoutModel, ListingModelListener {
|
||||
if (indexBefore == null) {
|
||||
indexBefore = BigInteger.ZERO;
|
||||
}
|
||||
if (indexAfter.subtract(indexBefore)
|
||||
.compareTo(addressToIndexMap.getMiniumUnviewableGapSize()) > 0) {
|
||||
if (indexAfter.subtract(indexBefore).compareTo(
|
||||
addressToIndexMap.getMiniumUnviewableGapSize()) > 0) {
|
||||
Address start = addressToIndexMap.getAddress(indexBefore.add(BigInteger.ONE));
|
||||
Address end = addressToIndexMap.getAddress(indexAfter.subtract(BigInteger.ONE));
|
||||
if (start != null && end != null) {
|
||||
if (start != null && end != null &&
|
||||
start.getAddressSpace().equals(end.getAddressSpace())) {
|
||||
addressSet.add(start, end);
|
||||
}
|
||||
}
|
||||
@ -619,7 +620,7 @@ public class ListingModelAdapter implements LayoutModel, ListingModelListener {
|
||||
|
||||
/**
|
||||
* Sets the addresses displayed by this model's listing.
|
||||
* @param view the addresses. These must already be compatible with the program
|
||||
* @param view the addresses. These must already be compatible with the program
|
||||
* associated with this model.
|
||||
*/
|
||||
public void setAddressSet(AddressSetView view) {
|
||||
|
Loading…
Reference in New Issue
Block a user