Skip to content

Commit

Permalink
CodeQL Fix: Unused variable
Browse files Browse the repository at this point in the history
Also underscores an unused unpacked tuple value
  • Loading branch information
dgmcdona committed Feb 28, 2025
1 parent 8b11d09 commit e5ab4aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volatility3/framework/plugins/windows/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def generate_mapping(
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()
Expand All @@ -180,7 +180,7 @@ def generate_mapping(
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
):
Expand Down

0 comments on commit e5ab4aa

Please sign in to comment.