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

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

Closed
wants to merge 1 commit into from

Conversation

@vstinner
Copy link
Member

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

This comment has been minimized.

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.

@vstinner vstinner closed this Feb 1, 2018
@vstinner vstinner deleted the vstinner:list_slice branch May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.