Skip to content

[3.8] bpo-37947: Avoid double-decrement in symtable recursion counting (GH-15593) #15594

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

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 29, 2019

With symtable_visit_expr now correctly adjusting the recursion depth for named
expressions, symtable_handle_namedexpr should be leaving it alone.

Also adds a new check to PySymtable_BuildObject that raises SystemError
if a successful first symbol analysis pass fails to keep the stack depth
accounting clean.
(cherry picked from commit 0614523)

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

https://bugs.python.org/issue37947

Automerge-Triggered-By: @ncoghlan

…honGH-15593)

With `symtable_visit_expr` now correctly adjusting the recursion depth for named
expressions, `symtable_handle_namedexpr` should be leaving it alone.

Also adds a new check to `PySymtable_BuildObject` that raises `SystemError`
if a successful first symbol analysis pass fails to keep the stack depth
accounting clean.
(cherry picked from commit 0614523)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
@miss-islington
Copy link
Contributor Author

@ncoghlan: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 384c6d7 into python:3.8 Aug 29, 2019
@miss-islington miss-islington deleted the backport-0614523-3.8 branch August 29, 2019 13:46
@miss-islington
Copy link
Contributor Author

@ncoghlan: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@ncoghlan: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants