From cbab1d1f49a6bdeaa2acda52290ccb925c24f9a3 Mon Sep 17 00:00:00 2001 From: Dave Lassalle Date: Tue, 11 Mar 2025 09:30:38 -0500 Subject: [PATCH] #1446 - pid is objects.Pointer, not int --- volatility3/framework/plugins/windows/pstree.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/volatility3/framework/plugins/windows/pstree.py b/volatility3/framework/plugins/windows/pstree.py index 24f7e2356..39db56243 100644 --- a/volatility3/framework/plugins/windows/pstree.py +++ b/volatility3/framework/plugins/windows/pstree.py @@ -20,10 +20,10 @@ class PsTree(interfaces.plugins.PluginInterface): def __init__(self, *args, **kwargs) -> None: super().__init__(*args, **kwargs) - self._processes: Dict[int, Tuple[interfaces.objects.ObjectInterface, int]] = {} - self._levels: Dict[int, int] = {} - self._children: Dict[int, Set[int]] = {} - self._ancestors: Set[int] = set([]) + self._processes: Dict[objects.Pointer, Tuple[interfaces.objects.ObjectInterface, int]] = {} + self._levels: Dict[objects.Pointer, int] = {} + self._children: Dict[objects.Pointer, Set[int]] = {} + self._ancestors: Set[objects.Pointer] = set([]) @classmethod def get_requirements(cls):