diff --git a/volatility/framework/symbols/intermed.py b/volatility/framework/symbols/intermed.py index fa108cc50..48a57f095 100644 --- a/volatility/framework/symbols/intermed.py +++ b/volatility/framework/symbols/intermed.py @@ -195,6 +195,7 @@ class ISFormatTable(interfaces.symbols.SymbolTableInterface, metaclass = ABCMeta table_mapping: typing.Optional[typing.Dict[str, str]] = None) -> None: self._json_object = json_object self._validate_json() + self.name = self._check_type(name, str) nt = native_types or self._get_natives() if nt is None: raise ValueError("Native table not provided") diff --git a/volatility/framework/symbols/native.py b/volatility/framework/symbols/native.py index 8e92eb477..ba026df46 100644 --- a/volatility/framework/symbols/native.py +++ b/volatility/framework/symbols/native.py @@ -19,7 +19,7 @@ class NativeTable(interfaces.symbols.NativeTableInterface): self._overrides[native_type] = native_class # Create this once early, because it may get used a lot self._types = set(self._native_dictionary).union( - {'enum', 'array', 'bitfield', 'void', 'pointer', 'string', 'bytes', 'function'}) + {'enum', 'array', 'bitfield', 'void', 'string', 'bytes', 'function'}) def get_type_class(self, name: str) -> typing.Type[interfaces.objects.ObjectInterface]: ntype, _ = self._native_dictionary.get(name, (objects.Integer, None))