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

Limit infinite evaluation from recursive extends tags #719

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

jasmith-hs
Copy link
Contributor

Prevent infinite levels of extends tags being called when there is an extended child that has a child that extends itself. The basic stack way of detecting extends tag cycles did not catch this case. So this PR adds in a set that remembers the paths that have been extended when processing them and if any ever get encountered more than once, it will break and add an interpreter error.

The test case that I added is a simple demonstration of what caused infinite execution. This PR fixes that case.

cc @kacperadach @hs-lsong @bkrainer

@jasmith-hs jasmith-hs changed the title Limit extends Limit infinite evaluation from recursive extends tags Jul 26, 2021
Copy link
Contributor

@jmaroeder jmaroeder left a comment

Choose a reason for hiding this comment

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

Looks good to me

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.

2 participants