Skip to content

Commit 388a3e6

Browse files
committed
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`.
1 parent 1500d2e commit 388a3e6

File tree

1 file changed

+3
-0
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+3
-0
lines changed

volatility3/framework/symbols/linux/extensions/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,9 @@ def to_list(
10371037

10381038
current = current.next
10391039

1040+
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
1041+
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
1042+
10401043

10411044
class files_struct(objects.StructType):
10421045
def get_fds(self) -> interfaces.objects.ObjectInterface:

0 commit comments

Comments
 (0)