Skip to content

Commit 3aa4af8

Browse files
committed
Prevent infinite looping and out of memory errors #1482
1 parent b1a42d9 commit 3aa4af8

File tree

1 file changed

+9
-0
lines changed
  • volatility3/framework/symbols/windows/extensions

1 file changed

+9
-0
lines changed

volatility3/framework/symbols/windows/extensions/registry.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,17 @@ def _skip_key_hive_entry_path(self, kcb_flags):
133133

134134
def get_full_key_name(self) -> str:
135135
output = []
136+
seen = set()
137+
136138
kcb = self.KeyControlBlock
137139
while kcb.ParentKcb:
140+
if kcb.ParentKcb.vol.offset in seen:
141+
return ""
142+
seen.add(kcb.ParentKcb.vol.offset)
143+
144+
if len(output) > 128:
145+
return ""
146+
138147
if kcb.NameBlock.Name is None:
139148
break
140149

0 commit comments

Comments
 (0)