ensure that _parse_sections returns a constant number of None on failure

This commit is contained in:
Abyss Watcher
2025-12-03 17:41:58 +01:00
parent 89c5fc325a
commit d7103a2214
@@ -1134,7 +1134,7 @@ class ModuleExtract(interfaces.configuration.VersionableInterface):
vollog.debug(
f"Could not construct a symbol table for module at {module.vol.offset}. Cannot recover."
)
return None, None, None
return None
symtab_index = len(updated_sections)
@@ -1145,7 +1145,7 @@ class ModuleExtract(interfaces.configuration.VersionableInterface):
vollog.debug(
f"Did not find a .symtab section for module at {module.vol.offset:#x}. Cannot recover."
)
return None, None, None
return None
return updated_sections, strtab_index, symtab_index