From 456d7b7db5e6ec34b83e05aeb58877a76ae844ea Mon Sep 17 00:00:00 2001 From: David McDonald Date: Thu, 27 Feb 2025 18:14:53 -0600 Subject: [PATCH] CodeQL Fix: Unused variable Also underscores an unused unpacked tuple value --- volatility3/framework/plugins/windows/strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/plugins/windows/strings.py b/volatility3/framework/plugins/windows/strings.py index 0ec07d719..46784e48a 100644 --- a/volatility3/framework/plugins/windows/strings.py +++ b/volatility3/framework/plugins/windows/strings.py @@ -165,7 +165,7 @@ class Strings(interfaces.plugins.PluginInterface): context=context, kernel_module_name=kernel_module_name ): if not filter(process): - kernel_module_name = proc_id = "Unknown" + proc_id = "Unknown" try: proc_id = process.UniqueProcessId proc_layer_name = process.add_process_layer() @@ -180,7 +180,7 @@ class Strings(interfaces.plugins.PluginInterface): for mapval in proc_layer.mapping( 0x0, proc_layer.maximum_address, ignore_errors=True ): - mapped_offset, _, offset, mapped_size, maplayer = mapval + mapped_offset, _, offset, mapped_size, _maplayer = mapval for val in range( mapped_offset, mapped_offset + mapped_size, 0x1000 ):