Skip to content

Commit aa0c2b6

Browse files
committed
Mac: Fix bug found by buildbot/npetroni due refactoring
1 parent c3b7e92 commit aa0c2b6

File tree

1 file changed

+4
-1
lines changed
  • volatility3/framework/symbols/mac/extensions

1 file changed

+4
-1
lines changed

volatility3/framework/symbols/mac/extensions/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ def add_process_layer(self, config_prefix: str = None, preferred_name: str = Non
2828
if not isinstance(parent_layer, interfaces.layers.TranslationLayerInterface):
2929
raise TypeError("Parent layer is not a translation layer, unable to construct process layer")
3030

31-
with contextlib.suppress(exceptions.InvalidAddressException):
31+
try:
3232
dtb = self.get_task().map.pmap.pm_cr3
33+
except exceptions.InvalidAddressException:
34+
# Bail out because we couldn't find the DTB
35+
return None
3336

3437
if preferred_name is None:
3538
preferred_name = self.vol.layer_name + f"_Process{self.p_pid}"

0 commit comments

Comments
 (0)