Skip to content

Commit 2d80f46

Browse files
committed
Linux: update kernel_symbol extensions _do_get_name and _do_get_namespace to use errors='ignore' to match previous implimentation
1 parent 2d1acac commit 2d80f46

File tree

1 file changed

+4
-2
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,7 +3065,9 @@ def _do_get_name(self) -> str:
30653065
else:
30663066
raise AttributeError("Unsupported kernel_symbol type implementation")
30673067

3068-
return utility.pointer_to_string(name_offset, linux_constants.KSYM_NAME_LEN)
3068+
return utility.pointer_to_string(
3069+
name_offset, linux_constants.KSYM_NAME_LEN, errors="ignore"
3070+
)
30693071

30703072
def get_name(self) -> Optional[str]:
30713073
try:
@@ -3102,7 +3104,7 @@ def _do_get_namespace(self) -> str:
31023104
raise AttributeError("Unsupported kernel_symbol type implementation")
31033105

31043106
return utility.pointer_to_string(
3105-
namespace_offset, linux_constants.KSYM_NAME_LEN
3107+
namespace_offset, linux_constants.KSYM_NAME_LEN, errors="ignore"
31063108
)
31073109

31083110
def get_namespace(self) -> Optional[str]:

0 commit comments

Comments
 (0)