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
The local variable rewriting stage was mutating object keys while
iterating over the object itself. This caused the object to become
corrupted. This commit fixes the issue by switching the stage to use
the transformer interface which can safely mutate objects.
The transformer is more expensive because it preemptively copies
terms. If this is an issue, we could special case the transformer
usage to when an object would be mutated.
Fixesopen-policy-agent#2661
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The nightly fuzzing job found another crasher. Simplified version:
In this case, the rewriting of 'x' corrupts the object value in the head.
The text was updated successfully, but these errors were encountered: