[New-bugs-announce] [issue3095] multiprocessing initializes flags dict unsafely

Adam Olsen report at bugs.python.org
Thu Jun 12 22:23:24 CEST 2008


New submission from Adam Olsen <rhamph at gmail.com>:

multiprocessing.c currently has code like this:

	temp = PyDict_New();
	if (!temp)
		return;
	if (PyModule_AddObject(module, "flags", temp) < 0)
		return;

PyModule_AddObject consumes the reference to temp, so it could
conceivable be deleted before the rest of this function finishes.

----------
messages: 68081
nosy: Rhamphoryncus
severity: normal
status: open
title: multiprocessing initializes flags dict unsafely
versions: Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3095>
_______________________________________


More information about the New-bugs-announce mailing list