mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-27 20:14:51 +02:00
Updated imports to reflect new location of utility class; plugins are no longer outputing anything so commiting for Andrew to take a look at
This commit is contained in:
@@ -416,7 +416,11 @@ class list_head(objects.StructType, collections.abc.Iterable):
|
||||
direction = 'prev'
|
||||
if forward:
|
||||
direction = 'next'
|
||||
link = getattr(self, direction).dereference()
|
||||
try:
|
||||
link = getattr(self, direction).dereference()
|
||||
except exceptions.InvalidAddressException:
|
||||
print("return here")
|
||||
return
|
||||
|
||||
if not sentinel:
|
||||
yield self._context.object(symbol_type, layer, offset = self.vol.offset - relative_offset)
|
||||
@@ -428,7 +432,11 @@ class list_head(objects.StructType, collections.abc.Iterable):
|
||||
yield obj
|
||||
|
||||
seen.add(link.vol.offset)
|
||||
link = getattr(link, direction).dereference()
|
||||
try:
|
||||
link = getattr(self, direction).dereference()
|
||||
except exceptions.InvalidAddressException:
|
||||
print("break here")
|
||||
break
|
||||
|
||||
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
|
||||
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
|
||||
|
||||
Reference in New Issue
Block a user