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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the occurs check to prevent tagging types as substitutions for themselves #540

Merged

Conversation

TristonianJones
Copy link
Collaborator

There are two locations where a type parameter can get accidentally tagged as a substitution for itself. The original code caught one location, and the code since https://github.com/google/cel-go/releases/tag/v0.11.1 caught a different one.

This change catches the problematic tagging at both locations, thus avoiding a stack overflow when a type is marked
as a substitution of itself.

@TristonianJones TristonianJones requested a review from jcking May 13, 2022 17:19
@TristonianJones TristonianJones force-pushed the occur-check-cycle-fix branch from 91aec9d to 434b5f3 Compare May 13, 2022 17:22
@TristonianJones TristonianJones merged commit 11b2ffc into google:master May 13, 2022
@TristonianJones TristonianJones deleted the occur-check-cycle-fix branch May 13, 2022 17:33
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

2 participants