Skip to content

bpo-31165: Detect mutated list in list_slice() #3911

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

Closed
wants to merge 1 commit into from
Closed

bpo-31165: Detect mutated list in list_slice() #3911

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 6, 2017

Check if the list size changed before/after allocating a new list
object to prevent a crash.

https://bugs.python.org/issue31165

Check if the list size changed before/after allocating a new list
object to prevent a crash.
@vstinner
Copy link
Member Author

vstinner commented Oct 6, 2017

This PR lacks an unit test. I wrote it to show my idea to fix https://bugs.python.org/issue31165 without touching the garbage collector.

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.

3 participants