From bf61357ed28d906c095a963b60673c5f097459cd Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 15 Dec 2016 09:06:05 +0000 Subject: [PATCH] Don't forget to call super's struct_format. --- 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 43edfa158..c1595c88a 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -249,7 +249,7 @@ class Enumeration(PrimitiveObject, int): return cls._struct_type.__new__(cls, value) def __init__(self, context, type_name, object_info, struct_format, subtype = None, choices = None): - super().__init__(context, type_name, object_info) + super().__init__(context, type_name, object_info, struct_format) for k, v in self._check_type(choices, dict): self._check_type(k, str)