From f03f99e64c89b8b3efba2b5fe8cbb537e9ca5326 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 25 Dec 2016 17:26:06 +0000 Subject: [PATCH] Ensure the non-multithreaded scanner works the same way as the multithreaded one. --- volatility/framework/interfaces/layers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index d6db7ef33..b354dd07a 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -175,10 +175,10 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR for result in result.get(): yield from result else: - for block in range(min_address, max_address, scanner.chunk_size): + for value in scan_iterator(): if progress_callback: progress_callback(scan_metric(progress.value)) - yield from scan_chunk(block) + yield from scan_chunk(value) def _scan_iterator(self, scanner, min_address, max_address): return range(min_address, max_address, scanner.chunk_size)