Files
cpython/Modules
Guido van Rossum 2f80d96c04 Patch by Stephen Turner, who writes:
"""
It fixes a memory corruption error resulting from BadPickleGet
exceptions in load_get, load_binget and load_long_binget.  This was
initially reported on c.l.py as a problem with Cookie.py; see the thread
titled "python core dump (SIGBUS) on Solaris" for more details.

If PyDict_GetItem(self->memo, py_key) call failed, then py_key was being
Py_DECREF'd out of existence before call was made to
PyErr_SetObject(BadPickleGet, py_key).

The bug can be duplicated as follows:

import cPickle
cPickle.loads('garyp')

This raises a BadPickleGet exception whose value is a freed object.  A
core dump will soon follow.
"""

Jim Fulton approves of the patch.
1999-07-13 15:18:58 +00:00
..
1997-10-01 04:43:39 +00:00
1997-04-29 21:34:16 +00:00
1997-04-29 20:31:59 +00:00
1999-07-13 15:18:58 +00:00
1997-10-01 04:29:29 +00:00
1998-12-08 16:27:10 +00:00
1996-08-19 22:12:39 +00:00
1998-12-07 14:28:47 +00:00
1999-04-10 15:48:23 +00:00
1996-12-10 00:32:31 +00:00
1999-04-10 15:48:23 +00:00
1997-10-01 04:29:29 +00:00
1996-01-26 21:10:22 +00:00
1996-10-25 14:44:06 +00:00