This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing cleanup in list.sort() with key function
Type: behavior Stage: patch review
Components: Interpreter Core Versions: Python 3.3, Python 3.4, Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: NULL pointer dereference in listsort() with key function
View: 24044
Assigned To: Nosy List: christian.heimes, rhettinger
Priority: normal Keywords: patch

Created on 2015-04-23 14:22 by christian.heimes, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
list_keyfunc.patch christian.heimes, 2015-04-23 14:22
Messages (1)
msg241865 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2015-04-23 14:22
One error path in list.sort() doesn't do proper cleanup. It neither sets an exception nor resets the internal pointers to its former values. In case of failed malloc() it leaves the list object in an invalid state.
History
Date User Action Args
2022-04-11 14:58:16adminsetgithub: 68226
2015-04-23 21:08:39benjamin.petersonsetstatus: open -> closed
superseder: NULL pointer dereference in listsort() with key function
resolution: duplicate
2015-04-23 15:25:24serhiy.storchakasetnosy: + rhettinger
2015-04-23 14:22:58christian.heimescreate