Wrong use of 0 in Tcl_AppendResult
Closed / Fixed1562528fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-09-20 22:32:55
In tclThreadTest.c, line 429: Tcl_AppendResult(interp,"can't create a new thread",0); On 64-bit platform '0' becomes 32-bit '0', not NULL, and this can cause core dump. We had such a crash on Linux, that's why we grepped all sources. Many commands do not fit into one line, so there may be much more of such bugs.
eugene_cdnplain2006-09-21 05:42:30
Logged In: YES
user_id=518794
The same problem was found in Tk, in tkImgBmap.c, lines 1235
and 1239:
Tcl_AppendResult(interp, buffer, 0);
Please forward/fix this too. Bug report system does not
allow me to submit a bug with the same name to Tk.
dkfplain2006-09-21 07:03:25
Logged In: YES user_id=79902 Tk parts fixed in HEAD. Tcl still to fix.
dkf Ticket [1562528fff]: 1 change
[History diff]2006-09-21 07:04:45
hobbsplain2006-09-21 07:06:03
Logged In: YES user_id=72656 Please do 8.4 as well. It shouldn't be too many changes, likely all in the same places, and it would be nice to have 8.4 not have this known possible crash issue.
dkfplain2006-09-22 21:54:38
Logged In: YES user_id=79902 Fixed Tcl. Fixed 8.4 branches of Tcl and Tk (as long as it is only the same files affected; did not re-audit 8.4! Please comment here if anywhere missed.)
sf-robotplain2006-10-07 09:20:07
Logged In: YES user_id=1312539 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).
Log in (anonymous is fine) to add a comment.