Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast/parser: fix nightly fuzz case #5330

Merged
merged 3 commits into from Nov 2, 2022

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Nov 1, 2022

This time with a test case. Took me a while to chase this down, our parser code flow is quite a labyrinth 馃槄

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
@srenatus
Copy link
Contributor Author

srenatus commented Nov 1, 2022

@@ -2150,7 +2150,9 @@ func TestRuleRefHeads(t *testing.T) {
})
}

// TODO(sr): error cases, non-ground terms anywhere but at the end of the ref
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the TODO. There may be more error cases to add here, but that's implicit.

Also the "only string terms anywhere but at the end" part has been covered where it's enforced: in a compiler stage.

@srenatus srenatus marked this pull request as ready for review November 1, 2022 10:50
@srenatus srenatus merged commit 94f8bc7 into open-policy-agent:main Nov 2, 2022
@srenatus srenatus deleted the sr/fix-fuzz-case branch November 2, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant