You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mutating term values used as object keys (or set elements) is not safe
because the underlying hashtables get corrupted. This a known issue
that was previously fixed in the compiler (open-policy-agent#1125). The simplest
solution in this case is to use the ast.Transform helper instead of
ast.Walk so that a copy of object and set terms is made.
Fixesopen-policy-agent#1177
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Mutating term values used as object keys (or set elements) is not safe
because the underlying hashtables get corrupted. This a known issue
that was previously fixed in the compiler (#1125). The simplest
solution in this case is to use the ast.Transform helper instead of
ast.Walk so that a copy of object and set terms is made.
Fixes#1177
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Encountered this on v0.10.2. I think this might be related to #1125.
The text was updated successfully, but these errors were encountered: