This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients gumpy, pitrou
Date 2008-12-06.12:46:02
SpamBayes Score 0.00092818943
Marked as misclassified No
Message-id <1228567561.12039.5.camel@localhost>
In-reply-to <1228529424.11.0.233407832971.issue4509@psf.upfronthosting.co.za>
Content
> 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).
History
Date User Action Args
2008-12-06 12:46:04pitrousetrecipients: + pitrou, gumpy
2008-12-06 12:46:03pitroulinkissue4509 messages
2008-12-06 12:46:03pitroucreate