Skip to content

Commit 9f9afbf

Browse files
authored
Merge pull request #1048 from volatilityfoundation/issues/issue922
Issues/issue922
2 parents 62506ae + 8b6ab44 commit 9f9afbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

volatility3/framework/objects/utility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ def array_of_pointers(
4444
raise TypeError(
4545
"Subtype must be a valid template (or string name of an object template)"
4646
)
47+
# We have to clone the pointer class, or we'll be defining the pointer subtype for all future pointers
4748
subtype_pointer = context.symbol_space.get_type(
4849
symbol_table + constants.BANG + "pointer"
49-
)
50+
).clone()
5051
subtype_pointer.update_vol(subtype=subtype)
5152
return array.cast("array", count=count, subtype=subtype_pointer)

0 commit comments

Comments
 (0)