[Tcl-bugs] [ tktoolkit-Bugs-1096074 ] Wish crashes if a wrong value is used as a container id
by SourceForge.net other posts by this author
Dec 13 2006 7:20PM messages near this date
[Tcl-bugs] [ tktoolkit-Bugs-1615592 ] Wish console misses first fronting click
|
[Tcl-bugs] [ tktoolkit-Patches-1615427 ] Add "none" to supported cursor list (Win32/Unix)
Bugs item #1096074, was opened at 2005-01-04 14:14
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1096074&group_id=12997
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 74. Application Embedding
Group: obsolete: 8.5a3
> Status: Closed
Resolution: None
Priority: 7
Private: No
Submitted By: Chengye Mao (chengyemao)
Assigned to: Jeffrey Hobbs (hobbs)
Summary: Wish crashes if a wrong value is used as a container id
Initial Comment:
There is no protocol for embedded window
attachment, i.e., any number used as a value for -
use option will be accepted in general. That may
result in unexpected crach/panic if an invalid id is
supplied.
Following is one of examples with Tk 8.4/Window
2K (patch level 8.4.5).
1) run wish84
2) eval "winfo id ." and find the id is 0x000e0dc8
3) run another wish84
4) eval "toplevel .t -use 0x000e0dc8" and get an
message box with a title: Console: wish84.exe -
Application Error, with the following message: The
instruction at "0x0023b6ac" referenced memory
at "0x00000000". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
A user clicks OK and the first wish84 is killed.
To solve the problem, a protocol for
embedding/embedded attachment is needed. A
suggested one is for the container to send back its
id during attachment so that the embedded window
will use the returned id the verify the value of -use.
If match, the embbedded application will proceed
the attachment. Otherwise the embedded
application should return TCL_ERROR to cancel the
operation.
----------------------------------------------------------------------
> Comment By: SourceForge Robot (sf-robot)
Date: 2006-12-13 19:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1096074&group_id=12997
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-Bugs mailing list
Tcl-Bugs@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-bugs
|