Author serhiy.storchaka
Recipients JohnLeitch, benjamin.peterson, dev_zzo, serhiy.storchaka
Date 2015-06-28.19:26:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435519606.91.0.604496489147.issue24467@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-06-28 19:26:46serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, JohnLeitch, dev_zzo
2015-06-28 19:26:46serhiy.storchakasetmessageid: <1435519606.91.0.604496489147.issue24467@psf.upfronthosting.co.za>
2015-06-28 19:26:46serhiy.storchakalinkissue24467 messages
2015-06-28 19:26:46serhiy.storchakacreate