mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-31 04:09:40 +02:00
Core: Further python 3.6 fixes
This commit is contained in:
@@ -65,7 +65,7 @@ class SymbolSpace(interfaces.symbols.SymbolSpaceInterface):
|
||||
|
||||
def get_symbols_by_location(self, offset: int, size: int = 0, table_name: str = None) -> Iterable[str]:
|
||||
"""Returns all symbols that exist at a specific relative address."""
|
||||
table_list = self._dict.values() # type: Iterable[interfaces.symbols.BaseSymbolTableInterface]
|
||||
table_list: Iterable[interfaces.symbols.BaseSymbolTableInterface] = self._dict.values()
|
||||
if table_name is not None:
|
||||
if table_name in self._dict:
|
||||
table_list = [self._dict[table_name]]
|
||||
|
||||
@@ -526,7 +526,7 @@ class EPROCESS(generic.GenericIntelProcess, pool.ExecutiveObject):
|
||||
raise TypeError("Parent layer is not a translation layer, unable to construct process layer")
|
||||
|
||||
# Presumably for 64-bit systems, the DTB is defined as an array, rather than an unsigned long long
|
||||
dtb = 0 # type: int
|
||||
dtb: int = 0
|
||||
if isinstance(self.Pcb.DirectoryTableBase, objects.Array):
|
||||
dtb = self.Pcb.DirectoryTableBase.cast("unsigned long long")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user