Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Recursive function calls shouldn't raise RecursionError#173

Merged
KevinHock merged 3 commits into
python-security:masterfrom
bcaller:recursion
Sep 8, 2018
Merged

Recursive function calls shouldn't raise RecursionError#173
KevinHock merged 3 commits into
python-security:masterfrom
bcaller:recursion

Conversation

@bcaller
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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.

2 participants