mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
wrong comparison with None
This commit is contained in:
@@ -152,7 +152,7 @@ class Check_syscall(plugins.PluginInterface):
|
||||
except exceptions.SymbolError:
|
||||
ia32_symbol = None
|
||||
|
||||
if ia32_symbol != None:
|
||||
if ia32_symbol is not None:
|
||||
ia32_info = self._get_table_info(vmlinux, "ia32_sys_call_table", ptr_sz)
|
||||
tables.append(("32bit", ia32_info))
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class MMVAD_SHORT(objects.StructType):
|
||||
|
||||
if tag in ["VadS", "VadF"]:
|
||||
target = "_MMVAD_SHORT"
|
||||
elif tag != None and tag.startswith("Vad"):
|
||||
elif tag is not None and tag.startswith("Vad"):
|
||||
target = "_MMVAD"
|
||||
elif depth == 0:
|
||||
# the root node at depth 0 is allowed to not have a tag
|
||||
@@ -651,7 +651,7 @@ class EPROCESS(generic.GenericIntelProcess, pool.ExecutiveObject):
|
||||
except AttributeError:
|
||||
return False
|
||||
|
||||
return value != 0 and value != None
|
||||
return not value
|
||||
|
||||
def get_vad_root(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user