Skip to content

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

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:list_slice
Closed

bpo-31165: Detect mutated list in list_slice()#3911
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:list_slice

Conversation

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