Message209624
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. |
|
Date |
User |
Action |
Args |
2014-01-29 08:36:40 | qualab | set | recipients:
+ qualab, asvetlov |
2014-01-29 08:36:40 | qualab | set | messageid: <1390984600.38.0.476358983499.issue20434@psf.upfronthosting.co.za> |
2014-01-29 08:36:40 | qualab | link | issue20434 messages |
2014-01-29 08:36:40 | qualab | create | |
|