From 2d80f4680e41c373872386f7feef628e2ce8b7a4 Mon Sep 17 00:00:00 2001 From: eve Date: Fri, 25 Apr 2025 16:52:48 +0100 Subject: [PATCH] Linux: update kernel_symbol extensions _do_get_name and _do_get_namespace to use errors='ignore' to match previous implimentation --- volatility3/framework/symbols/linux/extensions/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/symbols/linux/extensions/__init__.py b/volatility3/framework/symbols/linux/extensions/__init__.py index bd57b726a..c980ee6b1 100644 --- a/volatility3/framework/symbols/linux/extensions/__init__.py +++ b/volatility3/framework/symbols/linux/extensions/__init__.py @@ -3065,7 +3065,9 @@ class kernel_symbol(objects.StructType): else: raise AttributeError("Unsupported kernel_symbol type implementation") - return utility.pointer_to_string(name_offset, linux_constants.KSYM_NAME_LEN) + return utility.pointer_to_string( + name_offset, linux_constants.KSYM_NAME_LEN, errors="ignore" + ) def get_name(self) -> Optional[str]: try: @@ -3102,7 +3104,7 @@ class kernel_symbol(objects.StructType): raise AttributeError("Unsupported kernel_symbol type implementation") return utility.pointer_to_string( - namespace_offset, linux_constants.KSYM_NAME_LEN + namespace_offset, linux_constants.KSYM_NAME_LEN, errors="ignore" ) def get_namespace(self) -> Optional[str]: