Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
51454a62
Commit
51454a62
authored
Apr 23, 2015
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge 3.2 (#24044)
parents
418fd74f
0823ffb2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Misc/NEWS
Misc/NEWS
+3
-0
Objects/listobject.c
Objects/listobject.c
+4
-2
No files found.
Misc/NEWS
View file @
51454a62
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.3.7?
Core and Builtins
-----------------
- Issue #24044: Fix possible null pointer dereference in list.sort in out of
memory conditions.
- Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
...
...
Objects/listobject.c
View file @
51454a62
...
...
@@ -1953,8 +1953,10 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds)
keys
=
&
ms
.
temparray
[
saved_ob_size
+
1
];
else
{
keys
=
PyMem_MALLOC
(
sizeof
(
PyObject
*
)
*
saved_ob_size
);
if
(
keys
==
NULL
)
return
NULL
;
if
(
keys
==
NULL
)
{
PyErr_NoMemory
();
goto
keyfunc_fail
;
}
}
for
(
i
=
0
;
i
<
saved_ob_size
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment