[New-bugs-announce] [issue10152] symtable.c: ste_tmpname uninitialized

Stefan Krah report at bugs.python.org
Wed Oct 20 12:47:53 CEST 2010


New submission from Stefan Krah <stefan-usenet at bytereef.org>:

Found by Valgrind:

==3947== Use of uninitialised value of size 8
==3947==    at 0x5716D13: _itoa_word (in /lib/libc-2.8.90.so)
==3947==    by 0x5719F53: vfprintf (in /lib/libc-2.8.90.so)
==3947==    by 0x5743239: vsnprintf (in /lib/libc-2.8.90.so)
==3947==    by 0x4956AF: PyOS_vsnprintf (mysnprintf.c:74)
==3947==    by 0x495661: PyOS_snprintf (mysnprintf.c:47)
==3947==    by 0x49FC1E: symtable_new_tmpname (symtable.c:1092)
==3947==    by 0x4A2CE6: symtable_handle_comprehension (symtable.c:1648)
==3947==    by 0x4A2F7C: symtable_visit_listcomp (symtable.c:1673)
==3947==    by 0x4A1C63: symtable_visit_expr (symtable.c:1363)
==3947==    by 0x4A07C5: symtable_visit_stmt (symtable.c:1178)
==3947==    by 0x4A0BBE: symtable_visit_stmt (symtable.c:1200)
==3947==    by 0x4A08D4: symtable_visit_stmt (symtable.c:1187)



The patch fixes the issue (unless the intent was to use somewhat randomized tmpnames).

----------
files: ste_tmpname.patch
keywords: patch
messages: 119198
nosy: skrah
priority: normal
severity: normal
status: open
title: symtable.c: ste_tmpname uninitialized
Added file: http://bugs.python.org/file19293/ste_tmpname.patch

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


More information about the New-bugs-announce mailing list