Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

> There may be other places this can happen but I haven't checked yet.

PyByteArray_Resize() is called in various places in bytearrayobject.c,
some of them where it is mandatory to mutate the underlying storage
before reallocating it. The solution would be to have a separate
function to check whether resizing is allowed (but it would not solve
the problem in the face of MemoryErrors).

----------
title: bugs in bytearray with exports (buffer protocol) -> possible memoryview 
bug

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4509>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to