GP-4781: Fix address space issues. Fix RegsProvider NPE.

This commit is contained in:
Dan 2024-07-31 11:06:47 -04:00
parent ae18bdb413
commit 4e4a227221
2 changed files with 6 additions and 2 deletions

View file

@ -38,6 +38,9 @@ public abstract class ByteCache {
if (!valid || start == null) {
return false;
}
if (start.getAddressSpace() != address.getAddressSpace()) {
return false;
}
long offset = address.subtract(start);
return Long.compareUnsigned(offset + length, len) < 0;
}