mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 05:07:38 +02:00
Fix checks in thrdscan that broke tests
This commit is contained in:
@@ -110,18 +110,19 @@ class ThrdScan(interfaces.plugins.PluginInterface, timeliner.TimeLinerInterface)
|
||||
vollog.debug(f"Thread invalid address {ethread.vol.offset:#x}")
|
||||
return None
|
||||
|
||||
if owner_proc_pid == 4 or owner_proc.InheritedFromUniqueProcessId == 4:
|
||||
vollog.debug(
|
||||
f"Skipping kernel process with pid {owner_proc.InheritedFromUniqueProcessId}"
|
||||
)
|
||||
return None
|
||||
|
||||
if vads_cache is not None:
|
||||
vads = pe_symbols.PESymbols.get_vads_for_process_cache(
|
||||
vads_cache, owner_proc
|
||||
)
|
||||
# no vads = terminated/smeared, pid 4 = kernel = don't check VADs
|
||||
if (
|
||||
owner_proc_pid != 4
|
||||
and owner_proc.InheritedFromUniqueProcessId != 4
|
||||
and (not vads or len(vads) < 5)
|
||||
):
|
||||
if not vads or len(vads) < 5:
|
||||
vollog.debug(
|
||||
f"No vads for process at {owner_proc.vol.offset:#x}. Skipping thread at {ethread.vol.offset:#x}"
|
||||
f"Not enough vads for process at {owner_proc.vol.offset:#x}. Skipping thread at {ethread.vol.offset:#x}"
|
||||
)
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user