GP-1778 corrected AddressRangeMapDB coalescing bug

This commit is contained in:
ghidra1 2022-05-04 10:57:52 -04:00
parent 17c0b78756
commit 323935e43f

View file

@ -701,7 +701,7 @@ public class AddressRangeMapDB implements DBListener {
return null;
}
if (paintStart.isSuccessor(recordEnd) || paintStart.compareTo(recordEnd) <= 0) {
if (recordEnd.isSuccessor(paintStart) || paintStart.compareTo(recordEnd) <= 0) {
// otherwise, merge by deleting previous record and changing start to record's start
rangeMapTable.deleteRecord(record.getKey());
return recordStart;