From c336a396954341e1133faabe928a342361590f2e Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 10 Aug 2017 20:44:21 +0100 Subject: [PATCH] Fix up the Char type (struct.unpack returns a bytes, not a string). --- volatility/framework/objects/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index ae6302bb4..66a625b2a 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -77,9 +77,10 @@ class Float(PrimitiveObject, float): """Primitive Object that handles double or floating point numbers""" _struct_type = float -class Char(PrimitiveObject, str): + +class Char(PrimitiveObject, bytes): """Primitive Object that handles characters""" - _struct_type = str + _struct_type = bytes class Bytes(PrimitiveObject, bytes):