Serhiy Storchaka added the comment:

Minimal example:

import array
a = array.array("B")
a.fromstring(b'x'*0x10000)
a.fromstring(a)
a.fromstring(a)

In 3.x it doesn't work. An exception is raised:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
BufferError: cannot resize an array that is exporting buffers

I think it would be better to raise an exception in 2.7 too.

----------
type: security -> crash

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to