From 34b3f75b991d96c7cd9bb54e0ebced61517a7ebc Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 25 Dec 2016 17:39:56 +0000 Subject: [PATCH] Fix up the physical layer scanner appropriately. --- volatility/framework/interfaces/layers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index b354dd07a..7780a05e7 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -186,9 +186,8 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR def _scan_chunk(self, scanner, min_address, max_address, progress, iterator_value): length = min(scanner.chunk_size + scanner.overlap, max_address - iterator_value) chunk = self.read(iterator_value, length) - progress.value += iterator_value - for x in scanner(chunk, iterator_value): - yield x + progress.value = iterator_value + return list(scanner(chunk, iterator_value)) def _scan_metric(self, _scanner, min_address, max_address, value): return (value * 100) / (max_address - min_address)