From 465bf03ad17d7adf7a385810efb5e674cf57ecd3 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 5 Jan 2015 15:05:26 +0000 Subject: [PATCH] Fix casting. --- volatility/framework/interfaces/objects.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volatility/framework/interfaces/objects.py b/volatility/framework/interfaces/objects.py index 46d657d7c..f8305eed8 100644 --- a/volatility/framework/interfaces/objects.py +++ b/volatility/framework/interfaces/objects.py @@ -81,9 +81,10 @@ class ObjectInterface(validity.ValidityRoutines, metaclass = ABCMeta): def cast(self, new_structure_name): """Returns a new object at the offset and from the layer that the current object inhabits""" object_template = self._context.symbol_space.get_structure(new_structure_name) + object_template.update_vol(self.vol) return object_template(context = self._context, - layer_name = self.vol.layer_name, - offset = self.vol.offset) + object_info = ObjectInformation(layer_name = self.vol.layer_name, + offset = self.vol.offset)) @classmethod @abstractmethod