From 292ed6aeb46ff9bbbfbd0a8f73460bebf21f32b7 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 24 Mar 2025 22:41:52 +0000 Subject: [PATCH] Try to avoid variables changing types --- volatility3/framework/interfaces/objects.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/volatility3/framework/interfaces/objects.py b/volatility3/framework/interfaces/objects.py index e1d36abb4..d6ad47bec 100644 --- a/volatility3/framework/interfaces/objects.py +++ b/volatility3/framework/interfaces/objects.py @@ -159,11 +159,11 @@ class ObjectInterface(metaclass=abc.ABCMeta): mask = context.layers[object_info.layer_name].address_mask normalized_offset = object_info.offset & mask - self._vol = kwargs + vol = kwargs vol_info_dict = {"type_name": type_name, "offset": normalized_offset} - self._vol.update(object_info) - self._vol.update(vol_info_dict) - self._vol = collections.ChainMap({}, self._vol) + vol.update(object_info) + vol.update(vol_info_dict) + self._vol = collections.ChainMap({}, vol) self._context = context def __getattr__(self, attr: str) -> Any: