From c163101e1716bb4c8a2d1d5b26fcd44c8c8e7ea7 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 5 Jan 2015 16:03:50 +0000 Subject: [PATCH] Correctly pass constructor arguments through the template's vol dictionary. --- volatility/framework/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/volatility/framework/__init__.py b/volatility/framework/__init__.py index 1d8d94220..648d4727d 100644 --- a/volatility/framework/__init__.py +++ b/volatility/framework/__init__.py @@ -87,7 +87,7 @@ class Context(interfaces.context.ContextInterface): # ## Object Factory Functions - def object(self, symbol, layer_name, offset, **kwargs): + def object(self, symbol, layer_name, offset, **arguments): """Object factory, takes a context, symbol, offset and optional layername Looks up the layername in the context, finds the object template based on the symbol, @@ -97,9 +97,10 @@ class Context(interfaces.context.ContextInterface): :rtype: :py:class:`volatility.framework.interfaces.objects.ObjectInterface` """ object_template = self._symbol_space.get_structure(symbol) - return object_template(self, - interfaces.objects.ObjectInformation(layer_name = layer_name, offset = offset), - **kwargs) + object_template.update_vol(**arguments) + return object_template(context = self, + object_info = interfaces.objects.ObjectInformation(layer_name = layer_name, + offset = offset))