From de58df236364acc7d3abcdbcd846500ef3474e05 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 15 Dec 2016 02:07:25 +0000 Subject: [PATCH] Fix negation flip that returned entirely the wrong values for arrays. --- volatility/framework/objects/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index b6a6f615a..43edfa158 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -335,7 +335,7 @@ class Array(interfaces.objects.ObjectInterface, collections.Sequence): offset = mask & (self.vol.offset + (self.vol.subtype.size * index)), parent = self) result += [self.vol.subtype(context = self._context, object_info = object_info)] - if return_list: + if not return_list: return result[0] return result