mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 12:17:38 +02:00
Leave pointer out of the default types (since it needs an appropriate size).
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user