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 serhiy.storchaka
Date 2016-07-23.16:31:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469291492.89.0.37008226611.issue27599@psf.upfronthosting.co.za>
In-reply-to
Content
There is reading one byte past the end of the input buffer in binascii.b2a_qp(). Following example shows the behavior difference depending on the value of this byte:

>>> binascii.b2a_qp(memoryview(b'..')[:-1])
b'.'
>>> binascii.b2a_qp(bytes(memoryview(b'..')[:-1]))
b'=2E'

In rare cases (memoryview of mmap object or custom buffer) this can cause a segfault.

Maybe there are similar issues with other binascii functions (not checked).
History
Date User Action Args
2016-07-23 16:31:32serhiy.storchakasetrecipients: + serhiy.storchaka
2016-07-23 16:31:32serhiy.storchakasetmessageid: <1469291492.89.0.37008226611.issue27599@psf.upfronthosting.co.za>
2016-07-23 16:31:32serhiy.storchakalinkissue27599 messages
2016-07-23 16:31:32serhiy.storchakacreate