From f72e39d5585ec5fe1a9053e1cc2a50fc86e31193 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 29 May 2018 00:42:52 +0100 Subject: [PATCH] Fix up small but significant typo. When asking for data with padding, the padding was guaranteed to always be at the end without spaces between pages. --- volatility/framework/interfaces/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index 0340f105d..0293d7800 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -350,7 +350,7 @@ class TranslationLayerInterface(DataLayerInterface, metaclass = ABCMeta): "Layer {} cannot map offset: {}".format(self.name, current_offset)) elif offset > current_offset: - output += [b"\x00" * (current_offset - offset)] + output += [b"\x00" * (offset - current_offset)] current_offset = offset elif offset < current_offset: raise exceptions.LayerException("Mapping returned an overlapping element")