Skip to content

Commit 8960bda

Browse files
committed
Linux: hidden_modules: Add a symbol table check for a recent dwarf2json version
1 parent 1c6a548 commit 8960bda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

volatility3/framework/plugins/linux/hidden_modules.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,13 @@ def _generator(self):
232232
yield (0, fields)
233233

234234
def run(self):
235+
if self.context.symbol_space.verify_table_versions(
236+
"dwarf2json", lambda version, _: (not version) or version < (0, 8, 0)
237+
):
238+
raise exceptions.SymbolSpaceError(
239+
"Invalid symbol table, please ensure the ISF table produced by dwarf2json was created with version 0.8.0 or later"
240+
)
241+
235242
headers = [
236243
("Address", format_hints.Hex),
237244
("Name", str),

0 commit comments

Comments
 (0)