[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

Mark Shannon report at bugs.python.org
Fri Mar 9 11:04:22 CET 2012

New submission from Mark Shannon <mark at hotpy.org>:

I get the following compiler warning (rev 2a142141e5fd)
Its not strictly an error, but an unitialised variable in such an 
important function is dangerous.

Objects/object.c: In function ‘_PyObject_GenericSetAttrWithDict’:
Objects/object.c:1144: warning: ‘descr’ may be used uninitialised in this function

Patch attached

components: Installation
files: uninitialised_descr.patch
keywords: patch
messages: 155221
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Uninitialised variable in _PyObject_GenericSetAttrWithDict
type: compile error
Added file: http://bugs.python.org/file24765/uninitialised_descr.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list