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 asvetlov
Recipients asvetlov, qualab
Date 2014-01-29.10:21:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Bug can be reproduced if _PyBytes_Resize fails with out-of-memory error than NULL object decrefed.
Buggy modules are _io, binascii and zlib.

3.4 hasn't the problem.
Patch for 3.3 is attached.
Fix goes to mimic 3.4 -- (replace Py_DECREF with Py_CLEAR), while for 
_PyBytes_Resize that does not make sense, object has been set to NULL inside _PyBytes_Resize on fail.

Also 2.7 has the same issue for _PyString_Resize calls.
Date User Action Args
2014-01-29 10:21:01asvetlovsetrecipients: + asvetlov, qualab
2014-01-29 10:21:01asvetlovsetmessageid: <>
2014-01-29 10:21:01asvetlovlinkissue20434 messages
2014-01-29 10:21:01asvetlovcreate