mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 19:27:39 +02:00
Make ETHREAD year check dynamic
Change upper bound year check of ETHREAD to be a decade from now. Makes consistent with EPROCESS.
This commit is contained in:
@@ -519,7 +519,8 @@ class ETHREAD(objects.StructType, pool.ExecutiveObject):
|
||||
if not isinstance(ctime, datetime.datetime):
|
||||
return False
|
||||
|
||||
if not (1998 < ctime.year < 2030):
|
||||
current_year = datetime.datetime.now().year
|
||||
if not (1998 < ctime.year < current_year + 10):
|
||||
return False
|
||||
|
||||
except exceptions.InvalidAddressException:
|
||||
|
||||
Reference in New Issue
Block a user