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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2014-01-06.14:05:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389017153.04.0.847004275231.issue20142@psf.upfronthosting.co.za>
In-reply-to
Content
Argument Clinic doesn't initialize Py_buffer parameters. It generates cleanup code:

    /* Cleanup for data */
    if (data.buf)
       PyBuffer_Release(&data);

And if PyArg_ParseTuple() is failed, the buf attribute can contains arbitrary (non-NULL) data. This causes crash in PyBuffer_Release(). See issue20133 for working example.
History
Date User Action Args
2014-01-06 14:05:53serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2014-01-06 14:05:53serhiy.storchakasetmessageid: <1389017153.04.0.847004275231.issue20142@psf.upfronthosting.co.za>
2014-01-06 14:05:53serhiy.storchakalinkissue20142 messages
2014-01-06 14:05:52serhiy.storchakacreate