layers: Fix up uses of is_valid.

This commit is contained in:
Mike Auty
2019-11-12 09:09:51 +00:00
committed by ikelos
parent 5b04492463
commit face38436e
11 changed files with 26 additions and 29 deletions
+1 -1
View File
@@ -305,7 +305,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)
return self._context.layers[layer_name].is_valid(self, self.vol.size)
def __getattr__(self, attr: str) -> Any:
"""Convenience function to access unknown attributes by getting them