Message271092
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). |
|
Date |
User |
Action |
Args |
2016-07-23 16:31:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2016-07-23 16:31:32 | serhiy.storchaka | set | messageid: <1469291492.89.0.37008226611.issue27599@psf.upfronthosting.co.za> |
2016-07-23 16:31:32 | serhiy.storchaka | link | issue27599 messages |
2016-07-23 16:31:32 | serhiy.storchaka | create | |
|