Skip to content

Commit

Permalink
Prevent infinite looping and out of memory errors #1482
Browse files Browse the repository at this point in the history
  • Loading branch information
atcuno committed Dec 28, 2024
1 parent b1a42d9 commit 3aa4af8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions volatility3/framework/symbols/windows/extensions/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,17 @@ def _skip_key_hive_entry_path(self, kcb_flags):

def get_full_key_name(self) -> str:
output = []
seen = set()

kcb = self.KeyControlBlock
while kcb.ParentKcb:
if kcb.ParentKcb.vol.offset in seen:
return ""
seen.add(kcb.ParentKcb.vol.offset)

if len(output) > 128:
return ""

if kcb.NameBlock.Name is None:
break

Expand Down

0 comments on commit 3aa4af8

Please sign in to comment.