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 izbyshev
Recipients eric.snow, izbyshev, serhiy.storchaka
Date 2018-08-22.17:52:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534960364.06.0.56676864532.issue34462@psf.upfronthosting.co.za>
In-reply-to
Content
The code at https://github.com/python/cpython/blob/28853a249b1d0c890b7e9ca345290bb8c1756446/Modules/_xxsubinterpretersmodule.c#L18 checks a wrong variable for NULL:

    const char *str = PyUnicode_AsUTF8(strobj);
    if (str == NULL) {
        return NULL;
    }
    char *copied = PyMem_Malloc(strlen(str)+1);
    if (str == NULL) {
        PyErr_NoMemory();
        return NULL;
    }

Reported by Svace static analyzer.
History
Date User Action Args
2018-08-22 17:52:44izbyshevsetrecipients: + izbyshev, eric.snow, serhiy.storchaka
2018-08-22 17:52:44izbyshevsetmessageid: <1534960364.06.0.56676864532.issue34462@psf.upfronthosting.co.za>
2018-08-22 17:52:44izbyshevlinkissue34462 messages
2018-08-22 17:52:43izbyshevcreate