Skip to content

Commit

Permalink
fix(#2035): Prevent infinite loops caused by cyclic references on typ…
Browse files Browse the repository at this point in the history
…edValue
  • Loading branch information
omarsy committed May 5, 2024
1 parent 88b9aa3 commit 75e4bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnovm/pkg/gnolang/values_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (mv *MapValue) ProtectedString(seen *seenValues) string {
for next != nil {
ss = append(ss,
next.Key.String()+":"+
next.Value.String())
next.Value.ProtectedString(seen))
next = next.Next
}
return "map{" + strings.Join(ss, ",") + "}"
Expand Down

0 comments on commit 75e4bc0

Please sign in to comment.