Skip to content

Commit

Permalink
Merge pull request #1462 from volatilityfoundation/issues/issue1442
Browse files Browse the repository at this point in the history
Layers: Fix vmware layer without a suitable meta
  • Loading branch information
ikelos authored Dec 23, 2024
2 parents 9b27f5e + eaca7b3 commit b630cfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions volatility3/framework/layers/vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def _read_header(self) -> None:
)

meta_layer = self.context.layers.get(self._meta_layer, None)
if meta_layer is None:
raise exceptions.LayerException(
self._meta_layer, "VMware: Meta layer not found"
)
header_size = struct.calcsize(self.header_structure)
data = meta_layer.read(0, header_size)
magic, unknown, groupCount = struct.unpack(self.header_structure, data)
Expand Down

0 comments on commit b630cfa

Please sign in to comment.