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

Recursive function calls shouldn't raise RecursionError #173

Merged
merged 3 commits into from
Sep 8, 2018

Conversation

bcaller
Copy link
Collaborator

@bcaller bcaller commented Sep 7, 2018

Store a stack of definitions.

If you revisit a function, treat it as a blackbox.

The non-recursive return values should still propagate.

Store a stack of definitions.

If you revisit a function, treat it as a blackbox.

The non-recursive return values should still propagate.
recur_but_no_propagation is actually safe, but it would be difficult to
reliably determine this, so we'll have to do with the false positive at
least for now (as recursive functions can call other recursive
functions).
@KevinHock KevinHock self-requested a review September 7, 2018 15:50
@KevinHock
Copy link
Collaborator

This happened to me the other day, thank you so much for making this! :D 🎊

Copy link
Collaborator

@KevinHock KevinHock left a comment

Choose a reason for hiding this comment

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

LGTM, I'll try to make a new release on Monday or Tuesday

p.s. Happy to give you PyPI access and GitHub write access 😉

@KevinHock KevinHock merged commit f023eaa into python-security:master Sep 8, 2018
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