Core: Pointer is_readable should check the native layer

This commit is contained in:
Mike Auty
2023-03-11 15:25:14 +00:00
parent 85e86d45c5
commit cfec8e4b12
+1 -1
View File
@@ -442,7 +442,7 @@ class Pointer(Integer):
def is_readable(self, layer_name: Optional[str] = None) -> bool:
"""Determines whether the address of this pointer can be read from
memory."""
layer_name = layer_name or self.vol.layer_name
layer_name = layer_name or self.vol.native_layer_name
return self._context.layers[layer_name].is_valid(self, self.vol.subtype.size)
def __getattr__(self, attr: str) -> Any: