Skip to content

Commit f00c4c3

Browse files
committed
Allows to create objects when using the same symbol table
1 parent 15a51cf commit f00c4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volatility3/framework/contexts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def object(
245245
"""
246246
if constants.BANG not in object_type:
247247
object_type = self.symbol_table_name + constants.BANG + object_type
248-
else:
248+
elif not object_type.startswith(self.symbol_table_name + constants.BANG):
249249
raise ValueError(
250250
"Cannot reference another module when constructing an object"
251251
)

0 commit comments

Comments
 (0)