Skip to content

Commit

Permalink
Linux: Adds missing abc.Iterable implementation
Browse files Browse the repository at this point in the history
`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`.
  • Loading branch information
dgmcdona committed Oct 24, 2024
1 parent 1500d2e commit 388a3e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,9 @@ def to_list(

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:
Expand Down

0 comments on commit 388a3e6

Please sign in to comment.