Skip to content

Commit

Permalink
Merge pull request #1217 from eve-mem/windows_issue_1146
Browse files Browse the repository at this point in the history
Windows: update handles plugin sar warnings to use DEFAULT_SAR_VALUE var
  • Loading branch information
ikelos authored Jul 30, 2024
2 parents bee3339 + 799afe6 commit 4e8d64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volatility3/framework/plugins/windows/handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def find_sar_value(self):
)
except exceptions.InvalidAddressException:
vollog.warning(
f"Failed to read {hex(num_bytes_to_read)} bytes at symbol {hex(func_addr_to_read)}. Unable to decode SAR value. Failing back to a common value of 0x10"
f"Failed to read {hex(num_bytes_to_read)} bytes at symbol {hex(func_addr_to_read)}. Unable to decode SAR value. Failing back to a common value of {hex(DEFAULT_SAR_VALUE)}"
)
self._sar_value = DEFAULT_SAR_VALUE
return self._sar_value
Expand All @@ -201,7 +201,7 @@ def find_sar_value(self):

if self._sar_value is None:
vollog.warning(
f"Failed to to locate SAR value having parsed {instruction_count} instructions, failing back to a common value of 0x10"
f"Failed to to locate SAR value having parsed {instruction_count} instructions, failing back to a common value of {hex(DEFAULT_SAR_VALUE)}"
)
self._sar_value = DEFAULT_SAR_VALUE

Expand Down

0 comments on commit 4e8d64e

Please sign in to comment.