root_cell_offset changes seem to have fixed maxaddr problems

This commit is contained in:
Dave Lassalle
2018-06-16 09:54:45 +01:00
committed by ikelos
parent 09475d5992
commit a0edd1e38e
+1 -3
View File
@@ -63,9 +63,7 @@ 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
# FIXME: using BaseBlock.Length runs into issues
# self._maxaddr = self._base_block.Length or 0x7fffffff
self._maxaddr = 0x7fffffff
self._maxaddr = self._base_block.Length or 0x7fffffff
@property
def hive_offset(self) -> int: