Overview
| Artifact ID: | e42a3c49c66a7229d1b2565aca9b541f1126c4c0 |
|---|---|
| Ticket: | 1352409fffffffffffffffffffffffffffffffff
"exec cat foo > ~unknown_user" == crash |
| User & Date: | nobody on 2005-11-09 17:49:22 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
You can trigger a crash by: exec cat foo > ~unknown_user The problem is a Tcl_DStringFree on an unallocated Tcl_DString in FileForRedirect in tclPipe.c. The Tcl_DStringFree then tries to ckfree a garbage value - bang! Something like: --- orig\tclPipe.c 2005-10-28 12:24:40.515898100 +0100 +++ tclPipe.c 2005-11-09 17:42:32.411874900 +0000 @@ -136,10 +136,10 @@ name = Tcl_TranslateFileName(interp, spec, &nameString); if (name != NULL) { file = TclpOpenFile(name, flags); + Tcl_DStringFree(&nameString); } else { file = NULL; } - Tcl_DStringFree(&nameString); if (file == NULL) { Tcl_AppendResult(interp, "couldn't ", ((writing) ? "write" : "read"), " file \"", spec, "\": ", ...should fix it. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "24. Channel Commands"
- title changed to: ""exec cat foo > ~unknown_user" == crash"
- type changed to: "Bug"