Skip to content

Commit

Permalink
file output failure results in UnreadableValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss-W4tcher committed Dec 23, 2024
1 parent 8d21328 commit 0bb0919
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions volatility3/framework/plugins/linux/graphics/fbdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
from typing import Type, List, Dict, Tuple
from volatility3.framework import constants, exceptions, interfaces
from volatility3.framework.configuration import requirements
from volatility3.framework.renderers import format_hints, TreeGrid, NotAvailableValue
from volatility3.framework.renderers import (
format_hints,
TreeGrid,
NotAvailableValue,
UnreadableValue,
)
from volatility3.framework.objects import utility
from volatility3.framework.constants import architectures
from volatility3.framework.symbols import linux
Expand Down Expand Up @@ -280,11 +285,12 @@ def _generator(self):
file_output = self.dump_fb(
self.context, kernel_name, self.open, fb, bool(fb.color_fields)
)
file_output = str(file_output)
except exceptions.InvalidAddressException as excp:
vollog.error(
f'Layer {excp.layer_name} failed to read address {hex(excp.invalid_address)} when dumping framebuffer "{fb.id}".'
)
file_output = "Error"
file_output = UnreadableValue()

try:
fb_device_name = utility.pointer_to_string(
Expand All @@ -303,7 +309,7 @@ def _generator(self):
f"{fb.xres_virtual}x{fb.yres_virtual}",
fb.bpp,
"RUNNING" if fb.fb_info.state == 0 else "SUSPENDED",
str(file_output),
file_output,
),
)

Expand Down

0 comments on commit 0bb0919

Please sign in to comment.