Author serhiy.storchaka
Recipients alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou, serhiy.storchaka
Date 2015-04-06.12:01:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428321712.11.0.166628574781.issue23875@psf.upfronthosting.co.za>
In-reply-to
Content
Argument parsing code for functions _ssl.enum_certificates() and _ssl.enum_crls() look not correct. 

    if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s:enum_certificates",
                                     kwlist, &store_name)) {
        return NULL;
    }

The format contains codes for two string arguments. But only one address (&store_name) is passed. And kwlist contains only one member, "store_name".

These functions are provided only on Windows, so I can't check what happen if call them with two string arguments. May be crash or memory corruption.
History
Date User Action Args
2015-04-06 12:01:52serhiy.storchakasetrecipients: + serhiy.storchaka, janssen, pitrou, giampaolo.rodola, christian.heimes, alex, dstufft
2015-04-06 12:01:52serhiy.storchakasetmessageid: <1428321712.11.0.166628574781.issue23875@psf.upfronthosting.co.za>
2015-04-06 12:01:51serhiy.storchakalinkissue23875 messages
2015-04-06 12:01:51serhiy.storchakacreate