Message95847
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. |
|
Date |
User |
Action |
Args |
2009-12-01 06:19:15 | scoder | set | recipients:
+ scoder |
2009-12-01 06:19:14 | scoder | set | messageid: <1259648354.78.0.66746814248.issue7415@psf.upfronthosting.co.za> |
2009-12-01 06:19:13 | scoder | link | issue7415 messages |
2009-12-01 06:19:11 | scoder | create | |
|