Message209631
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:01 | asvetlov | set | recipients:
+ asvetlov, qualab |
2014-01-29 10:21:01 | asvetlov | set | messageid: <1390990861.73.0.652174418757.issue20434@psf.upfronthosting.co.za> |
2014-01-29 10:21:01 | asvetlov | link | issue20434 messages |
2014-01-29 10:21:01 | asvetlov | create | |
|