mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-07 02:07:39 +02:00
Prevent infinite looping and out of memory errors #1482
This commit is contained in:
@@ -133,8 +133,17 @@ class CM_KEY_BODY(objects.StructType):
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user