From ccb190300347d77efdfa80865ff851693351331e Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 20 Mar 2018 17:22:38 +0000 Subject: [PATCH] Fix up Symbol.name issue as spotted by npetroni. --- volatility/framework/interfaces/symbols.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volatility/framework/interfaces/symbols.py b/volatility/framework/interfaces/symbols.py index ba4bf7492..0fc5df9ad 100644 --- a/volatility/framework/interfaces/symbols.py +++ b/volatility/framework/interfaces/symbols.py @@ -44,7 +44,8 @@ class Symbol(validity.ValidityRoutines): @property def type_name(self) -> typing.Optional[str]: """Returns the name of the type that the symbol represents""" - return self.type.name + # Objects and ObjectTemplates should *always* get a type_name when they're constructed, so allow the IndexError + return self.type.vol['type_name'] @property def type(self) -> typing.Optional[objects.Template]: