From 9378c445db2f6fca2dc80b74c7fddb5745b007f3 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 9 May 2019 01:56:17 +0100 Subject: [PATCH] lru_cache just seems to break file reading. --- volatility/framework/layers/physical.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/volatility/framework/layers/physical.py b/volatility/framework/layers/physical.py index 473083c4e..90feaca68 100644 --- a/volatility/framework/layers/physical.py +++ b/volatility/framework/layers/physical.py @@ -17,7 +17,6 @@ # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the # specific language governing rights and limitations under the License. # -import functools import threading from typing import Any, Dict, IO, List, Optional, Union @@ -150,10 +149,6 @@ class FileLayer(interfaces.layers.DataLayerInterface): def read(self, offset: int, length: int, pad: bool = False) -> bytes: """Reads from the file at offset for length""" - return self._read(offset, length, pad) - - @functools.lru_cache(maxsize = 512) - def _read(self, offset: int, length: int, pad: bool = False) -> bytes: if not self.is_valid(offset, length): invalid_address = offset if self.minimum_address < offset <= self.maximum_address: