Skip to content

Commit

Permalink
Put in safeguard against TypeError where cook is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Old committed Jul 1, 2020
1 parent 2e082dc commit 3a3f063
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions volatility/plugins/overlays/windows/win10.py
Expand Up @@ -360,6 +360,9 @@ def TypeIndex(self):
addr = self.obj_offset
indx = int(self.m("TypeIndex"))

if cook is None:
debug.error("Cannot obtain nt!ObHeaderCookie value")

return ((addr >> 8) ^ cook ^ indx) & 0xFF

def is_valid(self):
Expand Down

0 comments on commit 3a3f063

Please sign in to comment.