Message245916
The bytearray object allocates one byte more for trailing null byte. ob_size always should be less than ob_alloc if ob_alloc != 0. But in rare cases when the bytearray is initialized with an iterator, this rule can be violated. Following patch restores this property. PyByteArray_AS_STRING() now always returns null-terminated string. |
|
Date |
User |
Action |
Args |
2015-06-28 19:26:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, JohnLeitch, dev_zzo |
2015-06-28 19:26:46 | serhiy.storchaka | set | messageid: <1435519606.91.0.604496489147.issue24467@psf.upfronthosting.co.za> |
2015-06-28 19:26:46 | serhiy.storchaka | link | issue24467 messages |
2015-06-28 19:26:46 | serhiy.storchaka | create | |
|