Skip to content

Commit

Permalink
Layers: Fix MSF page len on a possibly uninitialized variable
Browse files Browse the repository at this point in the history
Fixes #1441
  • Loading branch information
ikelos committed Dec 20, 2024
1 parent 29485d6 commit f6f4c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volatility3/framework/layers/msf.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(
) -> None:
super().__init__(context, config_path, name, metadata)
self._base_layer = self.config["base_layer"]
self._pages = self.config.get("pages", None)
self._pages = self.config.get("pages", [])
self._pages_len = len(self._pages)
if not self._pages:
raise PDBFormatException(name, "Invalid/no pages specified")
Expand Down

0 comments on commit f6f4c7b

Please sign in to comment.