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 scoder
Recipients scoder
Date 2009-12-01.06:19:11
SpamBayes Score 2.0129244e-06
Marked as misclassified No
Message-id <1259648354.78.0.66746814248.issue7415@psf.upfronthosting.co.za>
In-reply-to
Content
PyUnicode_FromEncodedObject() currently calls PyObject_AsCharBuffer() to
get the buffer pointer and length of a buffer supporting object. It
should be changed to support the buffer protocol correctly instead.

I filed this as a crash bug as the buffer protocol allows a buffer
supporting object to discard its buffer when the release function is
called. The decode function uses the buffer only *after* releasing it,
thus provoking a crash for objects that implement the buffer protocol
correctly in that they do not allow access to the buffer after the release.
History
Date User Action Args
2009-12-01 06:19:15scodersetrecipients: + scoder
2009-12-01 06:19:14scodersetmessageid: <1259648354.78.0.66746814248.issue7415@psf.upfronthosting.co.za>
2009-12-01 06:19:13scoderlinkissue7415 messages
2009-12-01 06:19:11scodercreate