[issue3095] multiprocessing initializes flags dict unsafely
James Thomas
report at bugs.python.org
Fri Jun 13 03:05:58 CEST 2008
James Thomas <jjt009 at yahoo.com> added the comment:
I believe this patch solves the problem.
I added the line
Py_DECREF(temp)
after the code block shown above.
I also changed the line
if (PyDict_SetItemString(temp, #name, Py_BuildValue("i", name)) < 0) return
to
if (PyDict_SetItemString(PyObject_GetAttrString(module, "flags"), #name,
Py_BuildValue("i", name)) < 0) return
----------
keywords: +patch
nosy: +jjt009
Added file: http://bugs.python.org/file10609/multiprocessing.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3095>
_______________________________________
More information about the Python-bugs-list
mailing list