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 martin.panter
Recipients alexei.romanov, johan, martin.panter, ned.deily, pitrou, serhiy.storchaka, terry.reedy, tim.golden, wolma, zach.ware
Date 2015-05-19.14:30:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Posting a new patch which combines both fixes and adds some test cases. However the test needs Python to be built with “./configure --with-pydebug” to detect the buffer overrun; without this the test will probably silently pass.

I removed the offending buffer space check, and let it always call PyBufferArray_Resize(). I also looked around the bytearray module for similar errors for other operations but I couldn’t find any. The other cases already tend to always call PyByteArray_Resize().
Date User Action Args
2015-05-19 14:30:45martin.pantersetrecipients: + martin.panter, terry.reedy, pitrou, tim.golden, ned.deily, zach.ware, serhiy.storchaka, wolma, alexei.romanov, johan
2015-05-19 14:30:45martin.pantersetmessageid: <>
2015-05-19 14:30:45martin.panterlinkissue23985 messages
2015-05-19 14:30:45martin.pantercreate