[Python-Dev] cpython: Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on (original) (raw)
Georg Brandl g.brandl at gmx.net
Tue Oct 29 07:54:32 CET 2013
- Previous message: [Python-Dev] cpython: Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle
- Next message: [Python-Dev] cpython: Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 29.10.2013 01:46, schrieb victor.stinner:
http://hg.python.org/cpython/rev/e1d51c42e5a1 changeset: 86716:e1d51c42e5a1 user: Victor Stinner <victor.stinner at gmail.com> date: Tue Oct 29 01:28:23 2013 +0100 summary: Issue #18408: Fix PyUnicodeAsUTF8AndSize(), raise MemoryError exception on memory allocation failure
files: Objects/unicodeobject.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3766,6 +3766,7 @@ return NULL; PyUnicodeUTF8(unicode) = PyObjectMALLOC(PyBytesGETSIZE(bytes) + 1); if (PyUnicodeUTF8(unicode) == NULL) { + PyErrNoMemory(); PyDECREF(bytes); return NULL; }
Shouldn't this (and related commits from #18408) have been committed to the 3.3 branch?
Georg
- Previous message: [Python-Dev] cpython: Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle
- Next message: [Python-Dev] cpython: Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]