[New-bugs-announce] [issue8682] _ssl.c uses PyWeakref_GetObject but doesn't incref result
report at bugs.python.org
Tue May 11 01:32:11 CEST 2010
New submission from Antoine Pitrou <pitrou at free.fr>:
PyWeakref_GetObject() returns a borrowed reference, which can therefore become invalid at any time (especially when the GIL gets released). This provides a way to crash the interpreter deliberately.
The returned reference should be incref'ed immediately before any other action is taken.
components: Extension Modules
stage: needs patch
title: _ssl.c uses PyWeakref_GetObject but doesn't incref result
versions: Python 3.1, Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce