diff options
author | Guido van Rossum <guido@python.org> | 1999-07-13 15:18:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-07-13 15:18:58 (GMT) |
commit | 2f80d96c043d11e51b9df119c99c8ee59df1ba6d (patch) | |
tree | ee339bad86638504bd0d38cd7cb3e0f1d0d9b32c /Modules/regexpr.h | |
parent | 0eb55ac91208b58359e442553b6158739956ad39 (diff) | |
download | cpython-2f80d96c043d11e51b9df119c99c8ee59df1ba6d.zip cpython-2f80d96c043d11e51b9df119c99c8ee59df1ba6d.tar.gz cpython-2f80d96c043d11e51b9df119c99c8ee59df1ba6d.tar.bz2 |
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.
Diffstat (limited to 'Modules/regexpr.h')
0 files changed, 0 insertions, 0 deletions