Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 3a3f063

Browse files
author
Oliver Old
authored
Put in safeguard against TypeError where cook is None
1 parent 2e082dc commit 3a3f063

File tree

1 file changed

+3
-0
lines changed
  • volatility/plugins/overlays/windows

1 file changed

+3
-0
lines changed

volatility/plugins/overlays/windows/win10.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ def TypeIndex(self):
360360
addr = self.obj_offset
361361
indx = int(self.m("TypeIndex"))
362362

363+
if cook is None:
364+
debug.error("Cannot obtain nt!ObHeaderCookie value")
365+
363366
return ((addr >> 8) ^ cook ^ indx) & 0xFF
364367

365368
def is_valid(self):

0 commit comments

Comments
 (0)