mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-25 19:14:52 +02:00
Linux: Adds missing abc.Iterable implementation
`hlist_head` is missing an implementation for `collections.abc.Iterable`, resulting in a crash at runtime. This fixes the issue by providing the required `__iter__` implementation for `hlist_head`.
This commit is contained in:
@@ -1037,6 +1037,9 @@ class hlist_head(objects.StructType, collections.abc.Iterable):
|
||||
|
||||
current = current.next
|
||||
|
||||
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
|
||||
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
|
||||
|
||||
|
||||
class files_struct(objects.StructType):
|
||||
def get_fds(self) -> interfaces.objects.ObjectInterface:
|
||||
|
||||
Reference in New Issue
Block a user