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 <1432045845.85.0.47305801952.issue23985@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
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: <1432045845.85.0.47305801952.issue23985@psf.upfronthosting.co.za>
2015-05-19 14:30:45martin.panterlinkissue23985 messages
2015-05-19 14:30:45martin.pantercreate