From 86526fa9ad8472c5c774caca80e8795ef11afee2 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 14 Feb 2016 01:43:28 +0000 Subject: [PATCH] Separate out the object_info to make debugging easier in future. --- volatility/framework/objects/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index 50aa19697..0c5d93bd1 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -254,8 +254,10 @@ class Array(interfaces.objects.ObjectInterface, collections.Sequence): """Returns the i-th item from the array""" if i >= self.vol.count or 0 > i: raise IndexError - return self.vol.target(context = self._context, layer_name = self.vol.layer_name, - offset = self.vol.offset + (self.vol.target.size * i), parent = self) + object_info = ObjectInformation(layer_name = self.vol.layer_name, + offset = self.vol.offset + (self.vol.target.size * i), + parent = self) + return self.vol.target(context = self._context, object_info = object_info) def __len__(self): """Returns the length of the array"""