Objects: Fix incorrect pointer readability check

This commit is contained in:
Mike Auty
2020-06-28 19:32:37 +01:00
parent 888b432667
commit 4b29cf1986
+1 -1
View File
@@ -329,7 +329,7 @@ class Pointer(Integer):
"""Determines whether the address of this pointer can be read from
memory."""
layer_name = layer_name or self.vol.layer_name
return self._context.layers[layer_name].is_valid(self, self.vol.size)
return self._context.layers[layer_name].is_valid(self, self.vol.subtype.size)
def __getattr__(self, attr: str) -> Any:
"""Convenience function to access unknown attributes by getting them