[New-bugs-announce] [issue24038] Missing cleanup in list.sort() with key function

Christian Heimes report at bugs.python.org
Thu Apr 23 16:22:58 CEST 2015

New submission from Christian Heimes:

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.

components: Interpreter Core
files: list_keyfunc.patch
keywords: patch
messages: 241865
nosy: christian.heimes
priority: normal
severity: normal
stage: patch review
status: open
title: Missing cleanup in list.sort() with key function
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file39184/list_keyfunc.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list