From d097d6abeb278de346601c6ee7570aa5383bbb73 Mon Sep 17 00:00:00 2001 From: David McDonald Date: Thu, 20 Mar 2025 15:18:08 -0500 Subject: [PATCH] Timers: convert general Exception to InvalidAddressException --- volatility3/framework/plugins/windows/timers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/plugins/windows/timers.py b/volatility3/framework/plugins/windows/timers.py index 07313c004..f530a4c7b 100644 --- a/volatility3/framework/plugins/windows/timers.py +++ b/volatility3/framework/plugins/windows/timers.py @@ -11,6 +11,7 @@ from volatility3.framework import ( interfaces, constants, symbols, + exceptions, ) from volatility3.framework.configuration import requirements from volatility3.framework.renderers import format_hints @@ -139,9 +140,9 @@ class Timers(interfaces.plugins.PluginInterface): if dpc.DeferredRoutine == 0: continue deferred_routine = dpc.DeferredRoutine - except Exception as exc: + except exceptions.InvalidAddressException as exc: vollog.debug( - f"Failed to get _KTIMER.Dpc: {exc.__class__.__name__} {str(exc)}" + f"Failed to get _KTIMER.Dpc due to {exc.__class__.__name__}" ) continue