Message243596
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:45 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, pitrou, tim.golden, ned.deily, zach.ware, serhiy.storchaka, wolma, alexei.romanov, johan |
2015-05-19 14:30:45 | martin.panter | set | messageid: <1432045845.85.0.47305801952.issue23985@psf.upfronthosting.co.za> |
2015-05-19 14:30:45 | martin.panter | link | issue23985 messages |
2015-05-19 14:30:45 | martin.panter | create | |
|