Overview
| Artifact ID: | 2d4174405b8eb6f70043099fbbd57f8b0a914578 |
|---|---|
| Ticket: | 219362ffffffffffffffffffffffffffffffffff
Tcl_CreateTrace callback does not terminate command string c |
| User & Date: | nobody on 2000-10-26 05:11:28 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 5900 Bug Version: 8.3.1 SubmitDate: '2000-06-14' LastModified: '2000-06-14' Severity: MED Status: UnAssn Submitter: welch ChangedBy: welch OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' You need to run TclX to see this bug, but the callback made via Tcl_CreateTrace passes in a command argument that is no longer null-terminated at the end of the command. Instead you see the rest of the script. This probably occurred in the effort to remove "null hammering". To see, take this script: proc someProc {} {} cmdtrace on noeval someProc someProc someProc cmdtrace off And run it from the command line with Tcl X: ./tcl trace.test 1: someProc\nsomeProc\nsomeProc\ncmdtrace off\n 1: someProc\nsomeProc\ncmdtrace off\n 1: someProc\ncmdtrace off\n 1: cmdtrace off\n In this simple case, the string should terminate at the \n This has been broken since 8.2, we think. It would be nice to fix for Tcl 8.3.2 and TclPro 1.4 - foundin changed to: "obsolete: 8.3.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Tcl_CreateTrace callback does not terminate command string c
- type changed to: "Bug"