mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-26 11:34:49 +02:00
Guard against no progress_callback in intel layer.
This commit is contained in:
@@ -162,7 +162,8 @@ class Intel(interfaces.layers.TranslationLayerInterface):
|
||||
previous = None
|
||||
range_start = current = min_address
|
||||
while current <= max_address:
|
||||
progress_callback(round((current - min_address) * 100 / total_size, 3))
|
||||
if progress_callback:
|
||||
progress_callback(round((current - min_address) * 100 / total_size, 3))
|
||||
try:
|
||||
address, page_size = self._translate(current)
|
||||
if (previous, address) in scanned or not context.memory[self._base_layer].is_valid(address):
|
||||
|
||||
Reference in New Issue
Block a user