mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 11:17:38 +02:00
Ensure symbol tables are created with unique names.
This commit is contained in:
@@ -587,7 +587,10 @@ class SymbolRequirement(ConstructableRequirementInterface):
|
||||
# Determine the space name
|
||||
name = self.name
|
||||
if name in context.symbol_space:
|
||||
raise ValueError("Symbol space already contains a SymbolTable by the same name")
|
||||
index = 2
|
||||
while name in context.symbol_space:
|
||||
name = self.name + str(index)
|
||||
index += 1
|
||||
|
||||
config_path = path_join(config_path, self.name)
|
||||
args = {"context": context,
|
||||
|
||||
Reference in New Issue
Block a user