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: Crash if getvar of a non-existent Tcl variable
Type: Stage:
Components: Tkinter Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: david_ascher, loewis
Priority: high Keywords:

Created on 2003-09-16 18:27 by david_ascher, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix.diff david_ascher, 2003-09-16 18:27 Patch against _tkinter.c
Messages (4)
msg18168 - (view) Author: David Ascher (david_ascher) * (Python triager) Date: 2003-09-16 18:27
In 2.3, the code:

    from Tkinter import *
    x = Tk()
    x.getvar('foobar')

will crash.  This is due to bad error checking in 
_tkinter.c, in the GetVar() code.

A possible patch is attached.

Making p7 because it's a crasher. 
msg18169 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-18 18:01
Logged In: YES 
user_id=21627

The patch is fine; please apply (or reassign if you want me
to apply it).
msg18170 - (view) Author: David Ascher (david_ascher) * (Python triager) Date: 2003-09-22 18:56
Logged In: YES 
user_id=6114

Sorry, I'm afraid I'll have no time to apply before 2.3.1. -- if 
you do, please apply it.
msg18171 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-03 17:12
Logged In: YES 
user_id=21627

Fixed in

NEWS 1.831.4.59
_tkinter.c 1.161.8.1,1.162
History
Date User Action Args
2022-04-10 16:11:10adminsetgithub: 39238
2003-09-16 18:27:36david_aschercreate