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

Draft: prevent infinite recursion when analyzing recursive scripts #14

Conversation

jndre
Copy link
Contributor

@jndre jndre commented Oct 31, 2023

fix #13

add a stack that stores the varname parameter of _get_varname_value_from_context when a repetition in varnames is detected, prevent the recursion loop

add a stack that stores the varname parameter of _get_varname_value_from_context
when a repetition in varnames is detected, prevent the recursion loop
@jndre
Copy link
Contributor Author

jndre commented Oct 31, 2023

In addition to the varname the stack should probably also store the context node for comparison

@SoheilKhodayari SoheilKhodayari marked this pull request as ready for review November 2, 2023 10:27
@SoheilKhodayari SoheilKhodayari merged commit 9a6da91 into SoheilKhodayari:master Nov 2, 2023
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.

RecursionError in _get_varname_value_from_context
2 participants