don't use BaseBlock.Length for maxaddr

This commit is contained in:
Dave Lassalle
2018-06-16 09:54:45 +01:00
committed by ikelos
parent 0c3866ef77
commit 201fc5780a
+3 -1
View File
@@ -62,7 +62,9 @@ class RegistryHive(interfaces.layers.TranslationLayerInterface):
self._minaddr = 0
# If there's no base_block, we don't know how big the address space is
# We also don't know the root_cell_offset, so we use a hardcoded value of 0x20
self._maxaddr = self._base_block.Length or 0x7fffffff
# FIXME: using BaseBlock.Length runs into issues
# self._maxaddr = self._base_block.Length or 0x7fffffff
self._maxaddr = 0x7fffffff
@property
def hive_offset(self) -> int: