[issue20434] Process crashes if not enough memory to import module

Serhiy Storchaka report at bugs.python.org
Wed Jan 29 15:03:33 CET 2014


Serhiy Storchaka added the comment:

There are other places where Py_DECREF is called after failed _PyBytes_Resize(). For example in PyBytes_FromObject():

            if (_PyBytes_Resize(&new, size) < 0)
                goto error;
...
  error:
    /* Error handling when new != NULL */
    Py_XDECREF(it);
    Py_DECREF(new);
    return NULL;

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20434>
_______________________________________


More information about the Python-bugs-list mailing list