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.

Author qualab
Recipients asvetlov, qualab
Date 2014-01-29.08:36:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390984600.38.0.476358983499.issue20434@psf.upfronthosting.co.za>
In-reply-to
Content
In the file _io\fileio.c in function 

static PyObject *
fileio_readall(fileio *self)

this code is incorrect and crashes the process of Python:

 if (_PyBytes_Resize(&result, newsize) < 0) {
                if (total == 0) {
                    Py_DECREF(result);
                    return NULL;
                }
                PyErr_Clear();
                break;
            }

In the call of _PyBytes_Resize there the result variable passed by reference and changes value to NULL-pointer when function fails and return < 0. So on the line Py_DECREF(result); the Python process crashes.
History
Date User Action Args
2014-01-29 08:36:40qualabsetrecipients: + qualab, asvetlov
2014-01-29 08:36:40qualabsetmessageid: <1390984600.38.0.476358983499.issue20434@psf.upfronthosting.co.za>
2014-01-29 08:36:40qualablinkissue20434 messages
2014-01-29 08:36:40qualabcreate