This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: symtable.c: ste_tmpname uninitialized
Type: behavior Stage: patch review
Components: Interpreter Core Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: benjamin.peterson Nosy List: benjamin.peterson, skrah
Priority: normal Keywords: patch

Created on 2010-10-20 10:47 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ste_tmpname.patch skrah, 2010-10-20 10:47
Messages (2)
msg119198 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-10-20 10:47
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).
msg119235 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-10-20 21:25
r85757
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54361
2010-10-20 21:25:39benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg119235
2010-10-20 12:21:40benjamin.petersonsetassignee: benjamin.peterson

nosy: + benjamin.peterson
2010-10-20 11:10:56skrahsetcomponents: + Interpreter Core
2010-10-20 10:48:20skrahsetstage: patch review
type: behavior
versions: + Python 3.2
2010-10-20 10:47:51skrahcreate