forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
planner: Correct crash in virtual doc iteration
There was an issue with iterating over virtual docs when planning an expression that had `with` keywords. The iterator would potentially be called multiple times, so the "with" values needed to be pushed and popped accordingly. This essentially copies the pattern used in the topdown eval flow. Fixes: open-policy-agent#2601 Signed-off-by: Patrick East <east.patrick@gmail.com>
- Loading branch information
1 parent
30271bc
commit 53c9139
Showing
3 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters