Skip to content

Commit

Permalink
Merge pull request #1598 from volatilityfoundation/issue_1573_handle_…
Browse files Browse the repository at this point in the history
…iteration_traceback

Windows: Handles - catch exception in handle iteration
  • Loading branch information
ikelos authored Feb 3, 2025
2 parents b3760ce + 1d1af69 commit a4987b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion volatility3/framework/plugins/windows/handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ def _make_handle_array(self, offset, level, depth=0):
layer_object = self.context.layers[virtual]
masked_offset = offset & layer_object.maximum_address

for entry in table:
for i in range(len(table)):
try:
entry = table[i]
except exceptions.InvalidAddressException:
vollog.debug(f"Failed to get handle table entry at index {i}")
continue
# This triggered a backtrace in many testing samples
# in the level == 0 path
# The code above this calls `is_valid` on the `offset`
Expand Down

0 comments on commit a4987b3

Please sign in to comment.