From e9a6f3214cd54aba2dfe697bef6db74ea4af1fec Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 31 Jan 2025 09:58:31 +0000 Subject: [PATCH] Add comment for where to apply the fix --- volatility3/framework/layers/resources.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility3/framework/layers/resources.py b/volatility3/framework/layers/resources.py index 236d256f1..bf78f1c92 100644 --- a/volatility3/framework/layers/resources.py +++ b/volatility3/framework/layers/resources.py @@ -204,6 +204,8 @@ class ResourceAccessor: # open it in read mode only and allow breakages to happen if they wanted to write curfile = open(temp_filename, mode="rb") + # Validate the hash or delete the temp_filename and report an error + # Determine whether the file is a particular type of file, and if so, open it as such IMPORTED_MAGIC = False if HAS_MAGIC: