[issue19087] bytearray front-slicing not optimized
Martin Panter
report at bugs.python.org
Sat Apr 18 08:14:10 CEST 2015
Martin Panter added the comment:
I think the changes for this issue are causing the crash and unexpected buffer expansion described in Issue 23985. Appending to a bytearray() can overstep the memory buffer because it doesn’t account for ob_start when checking for resizing. And “del” can expand the allocated memory due to an off-by-one error. Please have a look at my patches. Perhaps there are other operations that also need patching to account for ob_start.
----------
nosy: +vadmium
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19087>
_______________________________________
More information about the Python-bugs-list
mailing list